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