Argument
2 years ago
Attribute
2 years ago
Exception
2 years ago
ParameterBag
3 years ago
Alias.php
4 years ago
ChildDefinition.php
4 years ago
Container.php
2 years ago
ContainerAwareInterface.php
2 years ago
ContainerAwareTrait.php
2 years ago
ContainerBuilder.php
2 years ago
ContainerInterface.php
4 years ago
Definition.php
2 years ago
EnvVarLoaderInterface.php
4 years ago
EnvVarProcessor.php
2 years ago
EnvVarProcessorInterface.php
4 years ago
ExpressionLanguage.php
2 years ago
ExpressionLanguageProvider.php
2 years ago
Parameter.php
4 years ago
Reference.php
4 years ago
ReverseContainer.php
2 years ago
ServiceLocator.php
2 years ago
TaggedContainerInterface.php
4 years ago
TypedReference.php
2 years ago
Variable.php
4 years ago
index.php
3 years ago
Reference.php
22 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\DependencyInjection; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class Reference |
| 5 | { |
| 6 | private $id; |
| 7 | private $invalidBehavior; |
| 8 | public function __construct(string $id, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) |
| 9 | { |
| 10 | $this->id = $id; |
| 11 | $this->invalidBehavior = $invalidBehavior; |
| 12 | } |
| 13 | public function __toString() |
| 14 | { |
| 15 | return $this->id; |
| 16 | } |
| 17 | public function getInvalidBehavior() |
| 18 | { |
| 19 | return $this->invalidBehavior; |
| 20 | } |
| 21 | } |
| 22 |