PropertyInfoExtractor

PropertyInfoExtractor

class PropertyInfoExtractor implements PropertyInfoExtractorInterface

Default {see PropertyInfoExtractorInterface} implementation.

Methods

__construct(iterable|PropertyListExtractorInterface[] $listExtractors = array(), iterable|PropertyTypeExtractorInterface[] $typeExtractors = array(), iterable|PropertyDescriptionExtractorInterface[] $descriptionExtractors = array(), iterable|PropertyAccessExtractorInterface[] $accessExtractors = array())
string[]|null getProperties(string $class, array $context = array())

Gets the list of properties available for the given class.

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

Gets the short description of the property.

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

Gets the long description of the property.

Type[]|null getTypes(string $class, string $property, array $context = array())

Gets types of a property.

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

Is the property readable?

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

Is the property writable?

Details

__construct(iterable|PropertyListExtractorInterface[] $listExtractors = array(), iterable|PropertyTypeExtractorInterface[] $typeExtractors = array(), iterable|PropertyDescriptionExtractorInterface[] $descriptionExtractors = array(), iterable|PropertyAccessExtractorInterface[] $accessExtractors = array())

Parameters

iterable|PropertyListExtractorInterface[] $listExtractors
iterable|PropertyTypeExtractorInterface[] $typeExtractors
iterable|PropertyDescriptionExtractorInterface[] $descriptionExtractors
iterable|PropertyAccessExtractorInterface[] $accessExtractors

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

Gets the list of properties available for the given class.

Parameters

string $class
array $context

Return Value

string[]|null

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

Gets the short description of the property.

Parameters

string $class
string $property
array $context

Return Value

string|null

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

Gets the long description of the property.

Parameters

string $class
string $property
array $context

Return Value

string|null

Type[]|null getTypes(string $class, string $property, array $context = array())

Gets types of a property.

Parameters

string $class
string $property
array $context

Return Value

Type[]|null

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

Is the property readable?

Parameters

string $class
string $property
array $context

Return Value

bool|null

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

Is the property writable?

Parameters

string $class
string $property
array $context

Return Value

bool|null

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部