2021-08-22 15:05:23 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest;
|
|
|
|
|
|
|
|
use Rinsvent\DTO2Data\Attribute\DataPath;
|
2021-08-29 12:28:06 +03:00
|
|
|
use Rinsvent\DTO2Data\Attribute\PropertyPath;
|
2021-08-22 15:05:23 +03:00
|
|
|
use Rinsvent\DTO2Data\Transformer\Trim;
|
|
|
|
|
|
|
|
#[HelloSchema]
|
|
|
|
class HelloRequest
|
|
|
|
{
|
|
|
|
#[Trim]
|
|
|
|
public string $surname;
|
|
|
|
#[DataPath('fake_age')]
|
|
|
|
public int $age;
|
|
|
|
public array $emails;
|
|
|
|
public array $authors;
|
2021-08-25 20:02:43 +03:00
|
|
|
public array $authors2;
|
|
|
|
public array $authors3;
|
2021-08-22 15:05:23 +03:00
|
|
|
public BuyRequest $buy;
|
|
|
|
public BarInterface $bar;
|
2021-08-29 12:28:06 +03:00
|
|
|
#[PropertyPath(path: 'uuid.id')]
|
|
|
|
public UUID $uuid;
|
2021-08-29 13:11:17 +03:00
|
|
|
public Collection $collection;
|
2021-08-22 15:05:23 +03:00
|
|
|
}
|