Spec-Zone.ru › Symfony 3.4

PhpDocExtractor

class PhpDocExtractor implements PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface

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

Константы

PROPERTY
ACCESSOR
MUTATOR

Методы

__construct(DocBlockFactoryInterface $docBlockFactory = null, array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null)
string|null getShortDescription(string $class, string $property, array $context = array())

Возвращает краткое описание свойства.

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

Возвращает подробное описание свойства.

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

Возвращает типы свойства.

Подробное описание

__construct(DocBlockFactoryInterface $docBlockFactory = null, array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null)

Параметры

DocBlockFactoryInterface $docBlockFactory
array $mutatorPrefixes
array $accessorPrefixes
array $arrayMutatorPrefixes

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

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.4/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.html

Spec-Zone.ru

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