Default implementation of {@link PropertyAccessorInterface}.
- author Bernhard Schussek
- author Kévin Dunglas
- author Nicolas Grekas
CloneableInstantiable
Constants |
public Symfony
|
public Symfony |
public Symfony
|
public Symfony
|
public Symfony
|
public Symfony |
public Symfony |
Methods |
public __construct(int $magicMethods = 3, int $throw = 2self::THROW_ON_INVALID_PROPERTY_PATH, ?Psr\Cache\CacheItemPoolInterface $cacheItemPool = NULL, ?Symfony Should not be used by application code. Use
|
public static createCache(string $namespace, int $defaultLifetime, string $version, ?Psr\Log\LoggerInterface $logger = NULL) : Symfony\Component\Cache\Adapter\AdapterInterface Creates the APCu adapter if applicable.
|
public getValue(object|array $objectOrArray, Symfony |
public isReadable(object|array $objectOrArray, Symfony |
public isWritable(object|array $objectOrArray, Symfony |
public setValue(object|array $objectOrArray, Symfony
|
Constants |
private Symfony |
private Symfony |
private Symfony |
private Symfony |
private Symfony |
private Symfony |
private Symfony |
Properties |
private $cacheItemPool = NULL
|
private $ignoreInvalidIndices = NULL |
private $ignoreInvalidProperty = NULL |
private $magicMethodsFlags = NULL |
private $propertyPathCache = [] |
private $readInfoExtractor = NULL
|
private $readPropertyCache = [] |
private $writeInfoExtractor = NULL
|
private $writePropertyCache = [] |
Methods |
private getPropertyPath(Symfony Gets a PropertyPath instance and caches it. |
private getReadInfo(string $class, string $property) : ?Symfony Guesses how to read the property value. |
private getWriteInfo(string $class, string $property, ?mixed $value) : Symfony |
private isPropertyWritable(object $object, string $property) : bool Returns whether a property is writable in the given object. |
private readIndex(array $zval, string|int $index) : array Reads a key from an array-like structure.
|
private readPropertiesUntil(array $zval, Symfony Reads the path from an object up to a given path index.
|
private readProperty(array $zval, string $property, bool $ignoreInvalidProperty = false, bool $isNullSafe = false) : array Reads the value of a property from an object.
|
private static throwInvalidArgumentException(string $message, array $trace, int $i, string $propertyPath, ?Throwable $previous = NULL) : void |
private writeCollection(array $zval, string $property, iterable $collection, Symfony Adjusts a collection-valued property by calling add() and remove() methods. |
private writeIndex(array $zval, string|int $index, ?mixed $value) : void Sets the value of an index in a given array-accessible value.
|
private writeProperty(array $zval, string $property, ?mixed $value) : void Sets the value of a property in the given object.
|
Methods |
public static createCache(string $namespace, int $defaultLifetime, string $version, ?Psr\Log\LoggerInterface $logger = NULL) : Symfony\Component\Cache\Adapter\AdapterInterface Creates the APCu adapter if applicable.
|
private static throwInvalidArgumentException(string $message, array $trace, int $i, string $propertyPath, ?Throwable $previous = NULL) : void |