Drupal investigation

Scope.php 841B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection;
  11. /**
  12. * Scope class.
  13. *
  14. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  15. *
  16. * @deprecated since version 2.8, to be removed in 3.0.
  17. */
  18. class Scope implements ScopeInterface
  19. {
  20. private $name;
  21. private $parentName;
  22. public function __construct($name, $parentName = ContainerInterface::SCOPE_CONTAINER)
  23. {
  24. $this->name = $name;
  25. $this->parentName = $parentName;
  26. }
  27. public function getName()
  28. {
  29. return $this->name;
  30. }
  31. public function getParentName()
  32. {
  33. return $this->parentName;
  34. }
  35. }