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

Class: VariableCommentSniff

Source Location: /PHP_CodeSniffer-3.1.1/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php

Class Overview

AbstractScopeSniff
   |
   --AbstractVariableSniff
      |
      --VariableCommentSniff

Parses and verifies the variable doc comment.


Author(s):

Copyright:

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

Methods


Inherited Variables

Inherited Methods

Class: AbstractVariableSniff

AbstractVariableSniff::__construct()
Constructs an AbstractVariableTest.
AbstractVariableSniff::processMemberVar()
Called to process class member vars.
AbstractVariableSniff::processTokenOutsideScope()
Processes the token outside the scope in the file.
AbstractVariableSniff::processTokenWithinScope()
Processes the token in the specified PHP_CodeSniffer_File.
AbstractVariableSniff::processVariable()
Called to process normal member vars.
AbstractVariableSniff::processVariableInString()
Called to process variables found in double quoted strings or heredocs.

Class: AbstractScopeSniff

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

Class Details

[line 16]
Parses and verifies the variable doc comment.


[ Top ]


Method Detail

processMemberVar   [line 29]

void processMemberVar( File $phpcsFile, int $stackPtr)

Called to process class member vars.
  • Access: public

Overrides AbstractVariableSniff::processMemberVar() (Called to process class member vars.)

Parameters:

\PHP_CodeSniffer\Files\File   $phpcsFile   —  The file being scanned.
int   $stackPtr   —  The position of the current token in the stack passed in $tokens.

[ Top ]

processVariable   [line 130]

void processVariable( File $phpcsFile, int $stackPtr)

Called to process a normal variable.

Not required for this sniff.

  • Access: protected

Overrides AbstractVariableSniff::processVariable() (Called to process normal member vars.)

Parameters:

\PHP_CodeSniffer\Files\File   $phpcsFile   —  The PHP_CodeSniffer file where this token was found.
int   $stackPtr   —  The position where the double quoted string was found.

[ Top ]

processVariableInString   [line 147]

void processVariableInString( File $phpcsFile, int $stackPtr)

Called to process variables found in double quoted strings.

Not required for this sniff.

  • Access: protected

Overrides AbstractVariableSniff::processVariableInString() (Called to process variables found in double quoted strings or heredocs.)

Parameters:

\PHP_CodeSniffer\Files\File   $phpcsFile   —  The PHP_CodeSniffer file where this token was found.
int   $stackPtr   —  The position where the double quoted string was found.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:27:52 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.