Spec-Zone.ru › Symfony 3.3

ReflectionExtractor

class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface

Извлекает данные с помощью API рефлексии.

Свойства

static $mutatorPrefixes
static $accessorPrefixes
static $arrayMutatorPrefixes

Методы

__construct()
string[]|null getProperties(string $class, array $context = array())

Получает список свойств, доступных для данного класса.

Тип[]|null getTypes(string $class, string $property, array $context = array())

Получает типы свойства.

bool|null isReadable(string $class, string $property, array $context = array())

Свойство читаемое?

bool|null isWritable(string $class, string $property, array $context = array())

Свойство записываемое?

Подробности

__construct()

string[]|null getProperties(string $class, array $context = array())

Получает список свойств, доступных для данного класса.

Параметры

string $class
array $context

Значение результата

string[]|null

Тип[]|null getTypes(string $class, string $property, array $context = array())

Получает типы свойства.

Параметры

string $class
string $property
array $context

Значение результата

Тип[]|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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API