dto2data/tests/unit/Converter/fixtures/FillTest/HelloRequest.php

29 lines
708 B
PHP
Raw Normal View History

<?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-11-06 11:23:18 +03:00
use Rinsvent\DTO2Data\Transformer\DateTimeFormat;
use Rinsvent\DTO2Data\Transformer\Trim;
#[HelloSchema]
class HelloRequest
{
#[Trim]
public string $surname;
#[DataPath('fake_age')]
public int $age;
public array $emails;
public array $authors;
public array $authors2;
public array $authors3;
public BuyRequest $buy;
public BarInterface $bar;
2021-08-29 12:28:06 +03:00
#[PropertyPath(path: 'uuid.id')]
public UUID $uuid;
public Collection $collection;
2021-11-06 11:23:18 +03:00
#[DateTimeFormat]
public \DateTimeImmutable $createdAt;
}