PHP Class Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff, PHP_CodeSniffer

Verifies the number of @throws tags and the number of throw tokens matches. Verifies the exception type.
Author: Greg Sherwood ([email protected])
Author: Marc McIntyre ([email protected])
Inheritance: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
Show file Open project: squizlabs/php_codesniffer

Public Methods

Method Description
__construct ( ) Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.

Protected Methods

Method Description
processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void Processes the function tokens within the class.

Method Details

__construct() public method

Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
public __construct ( )

processTokenWithinScope() protected method

Processes the function tokens within the class.
protected processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void
$phpcsFile PHP_CodeSniffer_File The file where this token was found.
$stackPtr integer The position where the token was found.
$currScope integer The current scope opener token.
return void