PropertyInfoExtractorInterface
интерфейс PropertyInfoExtractorInterface реализует PropertyTypeExtractorInterface, PropertyDescriptionExtractorInterface, PropertyAccessExtractorInterface, PropertyListExtractorInterface
Получает информацию о свойствах PHP-класса.
Удобный интерфейс, наследующий все специфические интерфейсы с информацией.
Методы
| Type[]|null | getTypes(string $class, string $property, array $context = array())
Получает типы свойства. |
из PropertyTypeExtractorInterface |
| string|null | getShortDescription(string $class, string $property, array $context = array())
Получает краткое описание свойства. |
из PropertyDescriptionExtractorInterface |
| string|null | getLongDescription(string $class, string $property, array $context = array())
Получает полное описание свойства. |
из PropertyDescriptionExtractorInterface |
| bool|null | isReadable(string $class, string $property, array $context = array())
Свойство читабельное? |
из PropertyAccessExtractorInterface |
| bool|null | isWritable(string $class, string $property, array $context = array())
Свойство записываемое? |
из PropertyAccessExtractorInterface |
| string[]|null | getProperties(string $class, array $context = array())
Получает список свойств, доступных для данного класса. |
из PropertyListExtractorInterface |
Детали
Type[]|null getTypes(string $class, string $property, array $context = array())
Получает типы свойства.
Параметры
| string | $class | |
| string | $property | |
| array | $context |
Возвращаемое значение
| Type[]|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 |
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 getProperties(string $class, array $context = array())
Получает список свойств, доступных для данного класса.
Параметры
| string | $class | |
| array | $context |
Возвращаемое значение
| string[]|null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/PropertyInfo/PropertyInfoExtractorInterface.html