PHP Класс TheSeer\phpDox\DocBlock\Factory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addParserClass ( string $annotation, string $classname ) Register a parser by its classname.
addParserFactory ( string $annotation, TheSeer\phpDox\FactoryInterface | string $factory ) Register a parser factory.
getDocBlock ( )
getElementInstanceFor ( $name, $annotation = null )
getInlineProcessor ( TheSeer\fDOM\fDOMDocument $dom )
getParserInstanceFor ( $name, $annotation = null )

Защищенные методы

Метод Описание
getInstanceByMap ( $map, $name, $annotation = null )
verifyType ( mixed $item, string $type = 'string' ) Verify the type of the given item matches the expected one.

Описание методов

addParserClass() публичный Метод

Register a parser by its classname.
public addParserClass ( string $annotation, string $classname )
$annotation string Identifier of the parser within the registry.
$classname string Name of the class representing the parser.

addParserFactory() публичный Метод

Register a parser factory.
public addParserFactory ( string $annotation, TheSeer\phpDox\FactoryInterface | string $factory )
$annotation string Identifier of the parser within the registry.
$factory TheSeer\phpDox\FactoryInterface | string Instance of FactoryInterface to be registered or FQCN of the object to be created.

getDocBlock() публичный Метод

public getDocBlock ( )

getElementInstanceFor() публичный Метод

public getElementInstanceFor ( $name, $annotation = null )

getInlineProcessor() публичный Метод

public getInlineProcessor ( TheSeer\fDOM\fDOMDocument $dom )
$dom TheSeer\fDOM\fDOMDocument

getInstanceByMap() защищенный Метод

protected getInstanceByMap ( $map, $name, $annotation = null )

getParserInstanceFor() публичный Метод

public getParserInstanceFor ( $name, $annotation = null )

verifyType() защищенный Метод

Verify the type of the given item matches the expected one.
protected verifyType ( mixed $item, string $type = 'string' )
$item mixed
$type string