private function hydrateOne(string $classPath, array $data): Hydratable
    {
        /** @var Hydratable $entity */
        $entity = new $classPath();
        $entity->hydrate($data);

        return $entity;
    }
private function hydrateOne(string $classPath, array $data): Hydratable
    {
        /** @var Hydratable $entity */
        $entity = new $classPath();
        $entity->hydrate($data);

        return $entity;
    }
private function hydrateOne ( string $ classPath , array $ data ) : Hydratable { /** @var Hydratable $entity */ $ entity = new $ classPath ( ) ; $ entity -> hydrate ( $ data ) ; return $ entity ; }
Hydrates an individual instance of an entity.
Hydrates an individual instance of an entity .