19 lines
353 B
PHP
19 lines
353 B
PHP
<?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,
|
|
) {}
|
|
}
|