PropertyAccessorInterface

PropertyAccessorInterface

interface PropertyAccessorInterface

Writes and reads values to/from an object/array graph.

Methods

setValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value)

Sets the value at the end of the property path of the object graph.

mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath)

Returns the value at the end of the property path of the object graph.

bool isWritable(object|arra