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.
dto2data/tests/unit/Converter/fixtures/FillTest/HelloRequest.php

29 lines
708 B

<?php
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest;
use Rinsvent\DTO2Data\Attribute\DataPath;
use Rinsvent\DTO2Data\Attribute\PropertyPath;
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;
#[PropertyPath(path: 'uuid.id')]
public UUID $uuid;
public Collection $collection;
#[DateTimeFormat]
public \DateTimeImmutable $createdAt;
}