class Scope

Scope class.

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

@api

Hierarchy

Expanded class hierarchy of Scope

8 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
ContainerAwareHttpKernel.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php
ContainerBuilderTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
ContainerTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

... See full list

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