Spec-Zone.ru › Symfony 3.0

ReflectionExtractor

class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface

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

Свойства

static string[] $mutatorPrefixes
static string[] $accessorPrefixes
static array[] $arrayMutatorPrefixes

Методы

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

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

Type[]|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())

Доступно ли свойство для записи?

Подробности

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

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.0/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.html

Spec-Zone.ru

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