PHP 클래스 Neos\Flow\Reflection\DocCommentParser

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The description as found in the doc comment
$tags array An array of tag names and their values (multiple values are possible)

공개 메소드들

메소드 설명
getDescription ( ) : string Returns the description which has been previously parsed
getTagValues ( string $tagName ) : array Returns the values of the specified tag. The doc comment must be parsed with parseDocComment() before tags are available.
getTagsValues ( ) : array Returns the tags which have been previously parsed
isTaggedWith ( string $tagName ) : boolean Checks if a tag with the given name exists
parseDocComment ( string $docComment ) : void Parses the given doc comment and saves the result (description and tags) in the parser's object. They can be retrieved by the getTags() getTagValues() and getDescription() methods.

보호된 메소드들

메소드 설명
parseTag ( string $line ) : void Parses a line of a doc comment for a tag and its value.

메소드 상세

getDescription() 공개 메소드

Returns the description which has been previously parsed
public getDescription ( ) : string
리턴 string The description which has been parsed

getTagValues() 공개 메소드

Returns the values of the specified tag. The doc comment must be parsed with parseDocComment() before tags are available.
public getTagValues ( string $tagName ) : array
$tagName string The tag name to retrieve the values for
리턴 array The tag's values

getTagsValues() 공개 메소드

Returns the tags which have been previously parsed
public getTagsValues ( ) : array
리턴 array Array of tag names and their (multiple) values

isTaggedWith() 공개 메소드

Checks if a tag with the given name exists
public isTaggedWith ( string $tagName ) : boolean
$tagName string The tag name to check for
리턴 boolean TRUE the tag exists, otherwise FALSE

parseDocComment() 공개 메소드

Parses the given doc comment and saves the result (description and tags) in the parser's object. They can be retrieved by the getTags() getTagValues() and getDescription() methods.
public parseDocComment ( string $docComment ) : void
$docComment string A doc comment as returned by the reflection getDocComment() method
리턴 void

parseTag() 보호된 메소드

The result is stored in the internal tags array.
protected parseTag ( string $line ) : void
$line string A line of a doc comment which starts with an @-sign
리턴 void

프로퍼티 상세

$description 보호되어 있는 프로퍼티

The description as found in the doc comment
protected string $description
리턴 string

$tags 보호되어 있는 프로퍼티

An array of tag names and their values (multiple values are possible)
protected array $tags
리턴 array