• File: StringCast.php
  • Full Path: /var/www/html/back/app/DtoCasts/StringCast.php
  • File size: 263 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

declare(strict_types=1);

namespace App\DtoCasts;

use WendellAdriel\ValidatedDTO\Casting\Castable;

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