PHP 클래스 TheSeer\phpDox\DocBlock\Factory

파일 보기 프로젝트 열기: theseer/phpdox 1 사용 예제들

공개 메소드들

메소드 설명
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