Mahdee Rajon  subception

File "IntegerCast.php"

Full Path: /var/www/html/back/app/DtoCasts/IntegerCast.php
File size: 261 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace App\DtoCasts;

use WendellAdriel\ValidatedDTO\Casting\Castable;

final class IntegerCast implements Castable
{
    public function cast(string $property, mixed $value): mixed
    {
        return (int) $value;
    }
}