class ScopeInfo
Holds details of a scope.
Hierarchy
- class \VariableAnalysis\Lib\ScopeInfo
Expanded class hierarchy of ScopeInfo
3 files declare their use of ScopeInfo
- Helpers.php in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - ScopeManager.php in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ ScopeManager.php - VariableAnalysisSniff.php in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php
File
-
vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ ScopeInfo.php, line 8
Namespace
VariableAnalysis\LibView source
class ScopeInfo {
/**
* The token index of the start of this scope.
*
* @var int
*/
public $scopeStartIndex;
/**
* The token index of the end of this scope, if important.
*
* @var int|null
*/
public $scopeEndIndex;
/**
* The variables defined in this scope.
*
* @var VariableInfo[]
*/
public $variables = [];
/**
* @param int $scopeStartIndex
* @param int|null $scopeEndIndex
*/
public function __construct($scopeStartIndex, $scopeEndIndex = null) {
$this->scopeStartIndex = $scopeStartIndex;
$this->scopeEndIndex = $scopeEndIndex;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ScopeInfo::$scopeEndIndex | public | property | * The token index of the end of this scope, if important. * * |
ScopeInfo::$scopeStartIndex | public | property | * The token index of the start of this scope. * * |
ScopeInfo::$variables | public | property | * The variables defined in this scope. * * |
ScopeInfo::__construct | public | function | * |