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

Breadcrumb

  1. Drupal Core 11.1.x

ScopeInfo.php

Namespace

VariableAnalysis\Lib

File

vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/ScopeInfo.php

View source
<?php

namespace VariableAnalysis\Lib;


/**
 * Holds details of a scope.
 */
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;
    }

}

Classes

Title Deprecated Summary
ScopeInfo Holds details of a scope.
RSS feed
Powered by Drupal