PropertyInfoCacheExtractor
class PropertyInfoCacheExtractor implements PropertyInfoExtractorInterface
Добавляет слой кэширования PSR-6 поверх экстрактора.
Методы
| __construct(PropertyInfoExtractorInterface $propertyInfoExtractor, CacheItemPoolInterface $cacheItemPool) | ||
| bool|null | isReadable(string $class, string $property, array $context = array()) Доступна ли для чтения эта собственность? | |
| bool|null | isWritable(string $class, string $property, array $context = array()) Доступна ли для записи эта собственность? | |
| string|null | getShortDescription(string $class, string $property, array $context = array()) Получить краткое описание свойства. | |
| string|null | getLongDescription(string $class, string $property, array $context = array()) Получить полное описание свойства. | |
| string[]|null | getProperties(string $class, array $context = array()) Получить список свойств, доступных для данного класса. | |
| Type[]|null | getTypes(string $class, string $property, array $context = array()) Получить типы свойства. |
Детали
__construct(PropertyInfoExtractorInterface $propertyInfoExtractor, CacheItemPoolInterface $cacheItemPool)
Параметры
| PropertyInfoExtractorInterface | $propertyInfoExtractor | |
| CacheItemPoolInterface | $cacheItemPool |
bool|null isReadable(string $class, string $property, array $context = array())
Доступна ли для чтения эта собственность?
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| bool|null |
bool|null isWritable(string $class, string $property, array $context = array())
Доступна ли для записи эта собственность?
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| bool|null |
string|null getShortDescription(string $class, string $property, array $context = array())
Получить краткое описание свойства.
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| string|null |
string|null getLongDescription(string $class, string $property, array $context = array())
Получить полное описание свойства.
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| string|null |
string[]|null getProperties(string $class, array $context = array())
Получить список свойств, доступных для данного класса.
Параметры
| string | $class | |
| array | $context |
Возвращаемое значение
| string[]|null |
Type[]|null getTypes(string $class, string $property, array $context = array())
Получить типы свойства.
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| Type[]|null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/PropertyInfo/PropertyInfoCacheExtractor.html