Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScopeInfo.php

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\Lib
View 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 *
RSS feed
Powered by Drupal