class Scope

Scope class.

@author Johannes M. Schmitt <schmittjoh@gmail.com>

@api

Hierarchy

Expanded class hierarchy of Scope

5 files declare their use of Scope
CheckReferenceValidityPassTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php
ContainerAwareEventDispatcherTest.php in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/ContainerAwareEventDispatcherTest.php
ContainerTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
CoreBundle.php in drupal/core/lib/Drupal/Core/CoreBundle.php
Definition of Drupal\Core\CoreBundle.
InlineServiceDefinitionsPassTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/InlineServiceDefinitionsPassTest.php

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Scope.php, line 21

Namespace

Symfony\Component\DependencyInjection
View source
class Scope implements ScopeInterface {
  private $name;
  private $parentName;

  /**
   * @api
   */
  public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER) {
    $this->name = $name;
    $this->parentName = $parentName;
  }

  /**
   * @api
   */
  public function getName() {
    return $this->name;
  }

  /**
   * @api
   */
  public function getParentName() {
    return $this->parentName;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Scope::$name private property
Scope::$parentName private property
Scope::getName public function @api Overrides ScopeInterface::getName
Scope::getParentName public function @api Overrides ScopeInterface::getParentName
Scope::__construct public function @api