Source Location: /PHP_CodeSniffer-0.1.1/CodeSniffer/CommentParser/CommentElement.php
[line 56]
A class to represent Comments of a doc comment.
Comments are in the following format.
Note that if there is no period to end the headline, the sentence before two newlines is assumed the headline comment.
__construct (Constructor) [line 69]
PHP_CodeSniffer_CommentParser_CommentElement __construct(
PHP_CodeSniffer_CommentParser_DocElemement
$previousElement, array
$tokens)
Constructs a PHP_CodeSniffer_CommentParser_CommentElement.
Overrides
PHP_CodeSniffer_CommentParser_SingleElement::__construct() (Constructs a SingleElement doc tag.)
Parameters:
PHP_CodeSniffer_CommentParser_DocElemement
$previousElement
—
The element that appears before this element.
array
$tokens
—
The tokens that make up this element.
getBodyComment [line 168]
Returns the body comment.
getHeadlineComment [line 82]
string getHeadlineComment(
)
Returns the headline comment.
getWhitespaceAfterHeadline [line 149]
string getWhitespaceAfterHeadline(
)
Returns the whitespace that exists between the headline and the comment.
isEmpty [line 181]
Returns true if there is no comment.