1 | <?php |
||
10 | final class ExternalReference |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $containerIdentifier; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $serviceIdentifier; |
||
21 | |||
22 | /** |
||
23 | * @param string|Reference $identifierOrReference |
||
24 | * |
||
25 | * @throw \InvalidArgumentException If given argument is not an external reference. |
||
26 | */ |
||
27 | public function __construct($identifierOrReference) |
||
41 | |||
42 | /** |
||
43 | * @param string|Reference $identifier |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public static function isValid($identifier) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function containerIdentifier() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function serviceIdentifier() |
||
73 | } |
||
74 |