data-transfer-object/tests/Casters/WithSpecificCaster.php
2026-02-18 20:29:13 -03:00

18 lines
305 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Casters;
use Icefox\DTO\Attributes\CastWith;
use Icefox\DTO\DataObject;
readonly class WithSpecificCaster
{
use DataObject;
public function __construct(
#[CastWith(SimpleValueCaster::class)]
public SimpleValue $value,
) {}
}