1 | <?php |
||
21 | final class Reference |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $id; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $invalidBehavior; |
||
32 | |||
33 | /** |
||
34 | * @param string $id The service identifier |
||
35 | * @param int $invalidBehavior The behavior when the service cannot be found |
||
36 | * |
||
37 | * @see Container |
||
38 | */ |
||
39 | 18 | public function __construct($id, $invalidBehavior) |
|
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 18 | public function getId() |
|
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | 18 | public function throwExceptionOnInvalidBehaviour() |
|
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | 18 | public function returnNullOnInvalidBehaviour() |
|
68 | |||
69 | /** |
||
70 | * @return bool |
||
71 | */ |
||
72 | 18 | public function ignoreOnInvalidBehaviour() |
|
76 | } |
||
77 |