You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Rinsvent\Data2DTO\Tests\unit\Converter\fixtures\FillTest;
|
|
|
|
|
|
|
|
use Rinsvent\Data2DTO\Attribute\DTOMeta;
|
|
|
|
use Rinsvent\Data2DTO\Attribute\PropertyPath;
|
|
|
|
use Rinsvent\Transformer\Transformer\Trim;
|
|
|
|
|
|
|
|
class HelloRequest
|
|
|
|
{
|
|
|
|
#[Trim]
|
|
|
|
public string $surname;
|
|
|
|
#[PropertyPath('fake_age')]
|
|
|
|
public int $age;
|
|
|
|
public array $emails;
|
|
|
|
#[DTOMeta(class: Author::class)]
|
|
|
|
public array $authors;
|
|
|
|
public BuyRequest $buy;
|
|
|
|
#[DTOMeta(class: Bar::class)]
|
|
|
|
public BarInterface $bar;
|
|
|
|
|
|
|
|
private BuyRequest $buy2;
|
|
|
|
|
|
|
|
public function getBuy2(): BuyRequest
|
|
|
|
{
|
|
|
|
return $this->buy2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setBuy2(BuyRequest $buy2): void
|
|
|
|
{
|
|
|
|
$this->buy2 = $buy2;
|
|
|
|
}
|
|
|
|
}
|