19 lines
349 B
PHP
19 lines
349 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Classes;
|
|
|
|
use Carbon\CarbonPeriodImmutable;
|
|
use Icefox\DTO\Attributes\CastWith;
|
|
use Icefox\DTO\DataObject;
|
|
|
|
readonly class WithMapperObject
|
|
{
|
|
use DataObject;
|
|
|
|
public function __construct(
|
|
#[CastWith(CarbonPeriodMapper::class)]
|
|
public CarbonPeriodImmutable $period,
|
|
) {}
|
|
}
|