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

Class: MemberVarScopeSniff

Source Location: /PHP_CodeSniffer-3.1.1/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php

Class Overview

AbstractScopeSniff
   |
   --AbstractVariableSniff
      |
      --MemberVarScopeSniff

Verifies that class members have scope modifiers.


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]
Verifies that class members have scope modifiers.


[ Top ]


Method Detail

processMemberVar   [line 28]

void processMemberVar( File $phpcsFile, int $stackPtr)

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

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

Parameters:

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

[ Top ]

processVariable   [line 59]

void processVariable( File $phpcsFile, int $stackPtr)

Processes normal variables.
  • Access: protected

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

Parameters:

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

[ Top ]

processVariableInString   [line 76]

void processVariableInString( File $phpcsFile, int $stackPtr)

Processes variables in double quoted strings.
  • Access: protected

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

Parameters:

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

[ Top ]


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