PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]
Packages:
PHP_CodeSniffer


Classes:
PEAR_Sniffs_Commenting_InlineCommentSniff
PEAR_Sniffs_Constants_ValidConstantNameSniff
PEAR_Sniffs_ControlStructures_ControlSignatureSniff
PEAR_Sniffs_Files_IncludingFileSniff
PEAR_Sniffs_Files_LineLengthSniff
PEAR_Sniffs_Methods_FunctionCallSignatureSniff
PEAR_Sniffs_Methods_MethodCallArgumentSpacingSniff
PEAR_Sniffs_Methods_OpeningMethodBraceSniff
PEAR_Sniffs_Methods_ValidDefaultValueSniff
PEAR_Sniffs_Misc_ShortOpenTagSniff
PEAR_Sniffs_NamingConventions_ValidClassNameSniff
PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff
PEAR_Sniffs_PHP_LowerCaseConstantSniff
PEAR_Sniffs_Statements_MultipleStatementSniff
PEAR_Sniffs_Whitespace_ScopeClosingBraceSniff
PEAR_Sniffs_Whitespace_ScopeIndentSniff
PHP_CodeSniffer
PHP_CodeSniffer_CommentParser_AbstractDocElement
PHP_CodeSniffer_CommentParser_AbstractParser
PHP_CodeSniffer_CommentParser_ClassCommentParser
PHP_CodeSniffer_CommentParser_CommentElement
PHP_CodeSniffer_CommentParser_FunctionCommentParser
PHP_CodeSniffer_CommentParser_MemberCommentParser
PHP_CodeSniffer_CommentParser_PairElement
PHP_CodeSniffer_CommentParser_ParameterElement
PHP_CodeSniffer_CommentParser_ParserException
PHP_CodeSniffer_CommentParser_SingleElement
PHP_CodeSniffer_Exception
PHP_CodeSniffer_File
PHP_CodeSniffer_Sniff_Exception
PHP_CodeSniffer_Standards_AbstractPatternSniff
PHP_CodeSniffer_Standards_AbstractScopeSniff
PHP_CodeSniffer_Standards_AbstractVariableSniff
PHP_CodeSniffer_Standards_IncorrectPatternException
PHP_CodeSniffer_Tokens
Files:
AbstractDocElement.php
AbstractParser.php
AbstractPatternSniff.php
AbstractScopeSniff.php
AbstractVariableSniff.php
ClassCommentParser.php
CodeSniffer.php
CommentElement.php
ControlSignatureSniff.php
DocElement.php
Exception.php
File.php
FunctionCallSignatureSniff.php
FunctionCommentParser.php
IncludingFileSniff.php
IncorrectPatternException.php
InlineCommentSniff.php
LineLengthSniff.php
LowerCaseConstantSniff.php
MemberCommentParser.php
MethodCallArgumentSpacingSniff.php
MultipleStatementSniff.php
OpeningMethodBraceSniff.php
PairElement.php
ParameterElement.php
ParserException.php
ScopeClosingBraceSniff.php
ScopeIndentSniff.php
ShortOpenTagSniff.php
SingleElement.php
Sniff.php
SniffException.php
Tokens.php
ValidClassNameSniff.php
ValidConstantNameSniff.php
ValidDefaultValueSniff.php
ValidFunctionNameSniff.php

Class: PHP_CodeSniffer_CommentParser_FunctionCommentParser

Source Location: /PHP_CodeSniffer-0.1.0/CodeSniffer/CommentParser/FunctionCommentParser.php

Class Overview

PHP_CodeSniffer_CommentParser_AbstractParser
 |
 --PHP_CodeSniffer_CommentParser_FunctionCommentParser

Parses function doc comments.


Author(s):

  • Squiz Pty Ltd

Methods


Inherited Variables

Class: PHP_CodeSniffer_CommentParser_AbstractParser

PHP_CodeSniffer_CommentParser_AbstractParser::$comment
PHP_CodeSniffer_CommentParser_AbstractParser::$deprecated
PHP_CodeSniffer_CommentParser_AbstractParser::$links
PHP_CodeSniffer_CommentParser_AbstractParser::$previousElement
PHP_CodeSniffer_CommentParser_AbstractParser::$sees
PHP_CodeSniffer_CommentParser_AbstractParser::$since
PHP_CodeSniffer_CommentParser_AbstractParser::$words

Inherited Methods

Class: PHP_CodeSniffer_CommentParser_AbstractParser

PHP_CodeSniffer_CommentParser_AbstractParser::__construct()
Constructs a Doc Comment Parser.
PHP_CodeSniffer_CommentParser_AbstractParser::getAllowedTags()
Returns a list of tags that this comment parser allows for it's comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getComment()
Returns the comment element that appears at the top of this doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getDeprecated()
Returns the deprecated element found in this comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getLine()
Returns the line that the token exists on in the doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getLinks()
Returns the link elements found in this comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getSees()
Returns the see elements that appear in this doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::getSince()
Returns the since element found in this comment.
PHP_CodeSniffer_CommentParser_AbstractParser::parse()
Initiates the parsing of the doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::parseComment()
Parses the comment element that appears at the top of the doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::parseDeprecated()
Parses \@deprecated tags.
PHP_CodeSniffer_CommentParser_AbstractParser::parseLink()
Parses \@link tags.
PHP_CodeSniffer_CommentParser_AbstractParser::parseSee()
Parses see tag element within the doc comment.
PHP_CodeSniffer_CommentParser_AbstractParser::parseSince()
Parses \@since tags.
PHP_CodeSniffer_CommentParser_AbstractParser::parseTag()
Parses the specified tag.

Class Details

[line 45]
Parses function doc comments.
  • Author: Squiz Pty Ltd


[ Top ]


Method Detail

__construct (Constructor) [line 76]

PHP_CodeSniffer_CommentParser_FunctionCommentParser __construct( string $comment)

Constructs a PHP_CodeSniffer_CommentParser_FunctionCommentParser.
  • Access: public

Overrides PHP_CodeSniffer_CommentParser_AbstractParser::__construct() (Constructs a Doc Comment Parser.)

Parameters:

string $comment — The comment to parse.

[ Top ]

getAllowedTags [line 182]

array(string getAllowedTags( )

Returns the allowed tags that can exist in a function comment.
  • Return: => boolean)
  • Access: protected

Overrides PHP_CodeSniffer_CommentParser_AbstractParser::getAllowedTags() (Returns a list of tags that this comment parser allows for it's comment.)
[ Top ]

getParams [line 142]

array(PHP_CodeSniffer_CommentParser_ParameterElement) getParams( )

Returns the parameter elements that this function comment contains.

Returns an empty array if no parameter elements are contained within this function comment.

  • Access: public

[ Top ]

getReturn [line 156]


Returns the return element in this fucntion comment.

Returns null if no return element exists in the comment.

  • Access: public

[ Top ]

getThrows [line 170]

array(PHP_CodeSniffer_CommentParser_PairElement) getThrows( )

Returns the throws elements in this fucntion comment.

Returns empty array if no throws elements in the comment.

  • Access: public

[ Top ]

parseParam [line 90]

PHP_CodeSniffer_CommentParser_ParameterElement parseParam( array(string) $tokens)

Parses parameter elements.
  • Access: protected

Parameters:

array(string) $tokens — The tokens that conmpise this sub element.

[ Top ]

parseReturn [line 107]

PHP_CodeSniffer_CommentParser_PairElement parseReturn( array(string) $tokens)

Parses return elements.
  • Access: protected

Parameters:

array(string) $tokens — The tokens that conmpise this sub element.

[ Top ]

parseThrows [line 124]

PHP_CodeSniffer_CommentParser_PairElement parseThrows( array(string) $tokens)

Parses throws elements.
  • Access: protected

Parameters:

array(string) $tokens — The tokens that conmpise this sub element.

[ Top ]


Documentation generated on 2019年3月11日 14:44:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /