$readonly =
new \
stdClass();
foreach ($classReflector->
getProperties(\ReflectionProperty::IS_READONLY
) as $propertyReflector) { if ($class ===
$propertyReflector->class
) { $readonly->
{$propertyReflector->name
} = true;
} } return $baseHydrator->
bindTo($readonly,
$class);
} if ($classReflector->name !==
$class) { return self::
$simpleHydrators[$classReflector->name
] ??= self::
getSimpleHydrator($classReflector->name
);
} $propertySetters =
[];
foreach ($classReflector->
getProperties() as $propertyReflector) { if (!
$propertyReflector->
isStatic()) { $propertySetters[$propertyReflector->name
] =
$propertyReflector->
setValue(...
);
} } if (!
$propertySetters) { return $baseHydrator;
}