include missing
This commit is contained in:
parent
88b5850c32
commit
d3e12785bb
20 changed files with 584 additions and 4 deletions
19
tests/Classes/FromInputObject.php
Normal file
19
tests/Classes/FromInputObject.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Classes;
|
||||
|
||||
use Icefox\DTO\Attributes\FromInput;
|
||||
use Icefox\DTO\DataObject;
|
||||
|
||||
readonly class FromInputObject
|
||||
{
|
||||
use DataObject;
|
||||
|
||||
public function __construct(
|
||||
#[FromInput('other_name')]
|
||||
public string $text,
|
||||
public int $standard,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue