51 lines
864 B
PHP
51 lines
864 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony framework.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* This source file is subject to the MIT license that is bundled
|
|
* with this source code in the file LICENSE.
|
|
*/
|
|
|
|
namespace Symfony\Component\DependencyInjection;
|
|
|
|
/**
|
|
* Scope class.
|
|
*
|
|
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
|
*
|
|
* @api
|
|
*/
|
|
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;
|
|
}
|
|
}
|