Symfony\Component\PropertyAccess\PropertyAccessor
Default implementation of {@link PropertyAccessorInterface}.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class PropertyAccessor
implements
PropertyAccessorInterface
{
- // constants
- const VALUE = 0;
- const IS_REF = 1;
- // members
- private $magicCall;
- // methods
- public void __construct()
- public void getValue()
- public void setValue()
- private array readPropertiesUntil()
- private mixed readIndex()
- private mixed readProperty()
- private void writeIndex()
- private void writeProperty()
- private string camelize()
- private array|null findAdderAndRemover()
- private Boolean isAccessible()
Hierarchy
Constants
Name | Value |
---|---|
VALUE | 0 |
IS_REF | 1 |
Members
private
- $magicCall
Methods
private
- camelize() — Camelizes a given string.
- findAdderAndRemover() — Searches for add and remove methods.
- isAccessible() — Returns whether a method is public and has a specific number of required parameters.
- readIndex() — Reads a key from an array-like structure.
- readPropertiesUntil() — Reads the path from an object up to a given path index.
- readProperty() — Reads the a property from an object or array.
- writeIndex() — Sets the value of the property at the given index in the path
- writeProperty() — Sets the value of the property at the given index in the path
public
- __construct() — Should not be used by application code. Use {@link PropertyAccess::getPropertyAccessor()} instead.
- getValue() — {@inheritdoc}
- setValue() — {@inheritdoc}