| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function __construct($identifierOrReference) |
||
| 39 | { |
||
| 40 | if (!preg_match('/^__(?P<container_identifier>.+?)__\.(?P<service_identifier>.++)$/', (string) $identifierOrReference, $matches)) { |
||
| 41 | throw new \InvalidArgumentException(sprintf( |
||
| 42 | 'Given argument "%s" is not an external reference.', |
||
| 43 | $identifierOrReference |
||
| 44 | )); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->containerIdentifier = $matches['container_identifier']; |
||
| 48 | $this->serviceIdentifier = $matches['service_identifier']; |
||
| 49 | } |
||
| 50 | |||
| 83 |