data-transfer-object/tests/Classes/WithMapperObject.php
2026-02-18 20:18:39 -03:00

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,
) {}
}