Pairity/src/Model/Casting/CasterInterface.php

13 lines
338 B
PHP
Raw Normal View History

2025-12-11 03:09:04 +00:00
<?php
namespace Pairity\Model\Casting;
interface CasterInterface
{
/** Convert a raw storage value (from DB/driver) to a PHP value for the DTO. */
public function fromStorage(mixed $value): mixed;
/** Convert a PHP value to a storage value suitable for persistence. */
public function toStorage(mixed $value): mixed;
}