You are here

class Scope in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Scope.php \Symfony\Component\DependencyInjection\Scope

Scope class.

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

@api

Hierarchy

  • class \Symfony\Component\DependencyInjection\Scope implements \Symfony\Component\DependencyInjection\ScopeInterface

Expanded class hierarchy of Scope

6 files declare their use of Scope
CheckReferenceValidityPassTest.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckReferenceValidityPassTest.php
container18.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container18.php
ContainerBuilderTest.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
ContainerTest.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
GraphvizDumper.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php

... See full list

File

modules/providers/service_container_symfony/lib/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
Scope::getParentName public function @api
Scope::__construct public function @api