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

34 lines
713 B

<?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;
}
}