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

30 lines
550 B
PHP

<?php
namespace Symfony\Component\DependencyInjection;
/**
* Scope class.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
class Scope implements ScopeInterface
{
private $name;
private $parentName;
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;
}
}