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.
21 lines
502 B
21 lines
502 B
<?php
|
|
|
|
namespace Rinsvent\Data2DTO\Tests\unit\Converter\fixtures\FillTest;
|
|
|
|
use Rinsvent\Data2DTO\Attribute\DTOMeta;
|
|
use Rinsvent\Data2DTO\Attribute\PropertyPath;
|
|
use Rinsvent\Data2DTO\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;
|
|
}
|
|
|