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 $magicMethodsFlags = 3, int $throw = 2self::THROW_ON_INVALID_PROPERTY_PATH, ?Psr\Cache\CacheItemPoolInterface $cacheItemPool = NULL, ?Symfony Should not be used by application code. Use {@link PropertyAccess::createPropertyAccessor()} instead.
|
| 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 ?Psr\Cache\CacheItemPoolInterface $cacheItemPool |
| private bool $ignoreInvalidIndices |
| private bool $ignoreInvalidProperty |
| private int $magicMethodsFlags |
| private array $propertyPathCache = [] |
| private Symfony |
| private array $readPropertyCache = [] |
| private Symfony |
| private array $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, bool $recursive = false) : 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 |