This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection/Scope.php

42 lines
841 B
PHP
Raw Normal View History

2011-02-27 19:56:29 +00:00
<?php
2011-05-31 09:57:06 +01:00
/*
2012-03-31 22:00:32 +01:00
* This file is part of the Symfony package.
2011-05-31 09:57:06 +01:00
*
* (c) Fabien Potencier <fabien@symfony.com>
*
2012-03-31 22:00:32 +01:00
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2011-05-31 09:57:06 +01:00
*/
2011-02-27 19:56:29 +00:00
namespace Symfony\Component\DependencyInjection;
/**
* Scope class.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*
* @deprecated since version 2.8, to be removed in 3.0.
2011-02-27 19:56:29 +00:00
*/
class Scope implements ScopeInterface
{
private $name;
private $parentName;
2011-02-27 19:56:29 +00:00
public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER)
{
$this->name = $name;
$this->parentName = $parentName;
}
public function getName()
{
return $this->name;
}
public function getParentName()
{
return $this->parentName;
}
2011-06-08 11:16:48 +01:00
}