Utility class to hydrate the properties of an object.
- author Nicolas Grekas
CloneableFinalInstantiable
Methods |
public static hydrate(object $instance, array $properties = [], array $scopedProperties = []) : object Sets the properties of an object, including private and protected ones. For example:
Instances of ArrayObject, ArrayIterator and SplObjectStorage can be hydrated
|
Methods |
public static hydrate(object $instance, array $properties = [], array $scopedProperties = []) : object Sets the properties of an object, including private and protected ones. For example:
Instances of ArrayObject, ArrayIterator and SplObjectStorage can be hydrated
|