Pairity/src/Contracts/Schema/HydratorInterface.php
Funky Waddle 1984fbe729
Some checks failed
CI / test (8.2) (push) Has been cancelled
CI / test (8.3) (push) Has been cancelled
CI / test (8.4) (push) Has been cancelled
Completely revamped Pairity ORM
2026-02-07 23:26:07 -06:00

23 lines
459 B
PHP

<?php
declare(strict_types=1);
namespace Pairity\Contracts\Schema;
/**
* Interface HydratorInterface
*
* Defines the contract for high-performance DTO hydrators.
*/
interface HydratorInterface
{
/**
* Hydrate a DTO instance from raw data.
*
* @param array<string, mixed> $data
* @param object $instance The DTO instance to hydrate.
* @return void
*/
public function hydrate(array $data, object $instance): void;
}