Source Location: /PHP_CodeSniffer-0.7.0/CodeSniffer/CommentParser/CommentElement.php
__construct (Constructor) [line 59]
PHP_CodeSniffer_CommentParser_CommentElement __construct(
PHP_CodeSniffer_CommentParser_DocElemement
$previousElement, array
$tokens, PHP_CodeSniffer_File
$phpcsFile)
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.
getLongComment [line 129]
Returns the long comment description.
getNewlineAfter [line 197]
Returns the newline(s) that exist before the tags.
getShortComment [line 72]
string getShortComment(
)
Returns the short comment description.
getWhiteSpaceBetween [line 179]
string getWhiteSpaceBetween(
)
Returns the whitespace that exists between the short and the long comment description.
isEmpty [line 216]
Returns true if there is no comment.