wip flattening
This commit is contained in:
parent
74f151df07
commit
d83a324eb0
5 changed files with 64 additions and 23 deletions
12
tests/Flattening/Classes/BasicRoot.php
Normal file
12
tests/Flattening/Classes/BasicRoot.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Flattening\Classes;
|
||||
|
||||
use Icefox\DTO\Attributes\Flat;
|
||||
use Icefox\DTO\DataObject;
|
||||
|
||||
class BasicRoot
|
||||
{
|
||||
use DataObject;
|
||||
public function __construct(public string $text, #[Flat] public RequiredLeaf $leaf) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue