CodeExplorer getHydrator example
$this->registry =
$registry;
$this->values =
$values;
$this->properties =
$properties;
$this->value =
$value;
$this->wakeups =
$wakeups;
} public static function hydrate($objects,
$values,
$properties,
$value,
$wakeups) { foreach ($properties as $class =>
$vars) { (self::
$hydrators[$class] ??= self::
getHydrator($class))($vars,
$objects);
} foreach ($wakeups as $k =>
$v) { if (\
is_array($v)) { $objects[-
$k]->
__unserialize($v);
} else { $objects[$v]->
__wakeup();
} } return $value;
} $this->registry =
$registry;
$this->values =
$values;
$this->properties =
$properties;
$this->value =
$value;
$this->wakeups =
$wakeups;
} public static function hydrate($objects,
$values,
$properties,
$value,
$wakeups) { foreach ($properties as $class =>
$vars) { (self::
$hydrators[$class] ??= self::
getHydrator($class))($vars,
$objects);
} foreach ($wakeups as $k =>
$v) { if (\
is_array($v)) { $objects[-
$k]->
__unserialize($v);
} else { $objects[$v]->
__wakeup();
} } return $value;
}