You are here

class ScopeInfo in Coder 8.2

Holds details of a scope.

@category PHP @package PHP_CodeSniffer @author Sam Graham <php-codesniffer-variableanalysis BLAHBLAH illusori.co.uk> @copyright 2011-2012 Sam Graham <php-codesniffer-plugins BLAHBLAH illusori.co.uk> @link http://pear.php.net/package/PHP_CodeSniffer

Hierarchy

  • class \DrupalPractice\Sniffs\CodeAnalysis\ScopeInfo

Expanded class hierarchy of ScopeInfo

File

coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php, line 27

Namespace

DrupalPractice\Sniffs\CodeAnalysis
View source
class ScopeInfo {
  public $owner;
  public $opener;
  public $closer;
  public $variables = array();

  /**
   * Constructor.
   *
   * @param int $currScope
   */
  function __construct($currScope) {

    // TODO: extract opener/closer.
    $this->owner = $currScope;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ScopeInfo::$closer public property
ScopeInfo::$opener public property
ScopeInfo::$owner public property
ScopeInfo::$variables public property
ScopeInfo::__construct function Constructor.