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

Class: Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff

Source Location: /PHP_CodeSniffer-0.6.0/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php

Class Overview

PHP_CodeSniffer_Standards_AbstractScopeSniff
   |
   --Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff

Verifies that a @throws tag exists for a function that throws exceptions.


Author(s):

Version:

  • Release: 0.6.0

Copyright:

  • 2006 Squiz Pty Ltd (ABN 77 084 670 600)

Methods


Inherited Variables

Inherited Methods

Class: PHP_CodeSniffer_Standards_AbstractScopeSniff

PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct()
Constructs a new AbstractScopeTest.
PHP_CodeSniffer_Standards_AbstractScopeSniff::process()
Processes the tokens that this test is listening for.
PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenOutsideScope()
Processes a token that is found within the scope that this test is listening to.
PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenWithinScope()
Processes a token that is found within the scope that this test is listening to.
PHP_CodeSniffer_Standards_AbstractScopeSniff::register()
The method that is called to register the tokens this test wishes to listen to.

Class Details

[line 35]
Verifies that a @throws tag exists for a function that throws exceptions.

Verifies the number of @throws tags and the number of throw tokens matches. Verifies the exception type.



[ Top ]


Method Detail

__construct (Constructor)   [line 42]

Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff __construct( )

Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
  • Access: public

Overrides PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct() (Constructs a new AbstractScopeTest.)
[ Top ]

processTokenWithinScope   [line 58]

void processTokenWithinScope( PHP_CodeSniffer_File $phpcsFile, int $stackPtr, int $currScope)

Processes the function tokens within the class.
  • Access: protected

Overrides PHP_CodeSniffer_Standards_AbstractScopeSniff::processTokenWithinScope() (Processes a token that is found within the scope that this test is listening to.)

Parameters:

PHP_CodeSniffer_File   $phpcsFile     The file where this token was found.
int   $stackPtr     The position where the token was found.
int   $currScope     The current scope opener token.

[ Top ]


Documentation generated on Thu, 26 Jul 2007 03:07:59 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.