| 1 | <?php  | 
            ||
| 21 | final class ExternalReference  | 
            ||
| 22 | { | 
            ||
| 23 | /**  | 
            ||
| 24 | * @var string  | 
            ||
| 25 | */  | 
            ||
| 26 | private $containerIdentifier;  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * @var string  | 
            ||
| 30 | */  | 
            ||
| 31 | private $serviceIdentifier;  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @param string|Reference $identifierOrReference  | 
            ||
| 35 | *  | 
            ||
| 36 | * @throw \InvalidArgumentException If given argument is not an external reference.  | 
            ||
| 37 | */  | 
            ||
| 38 | public function __construct($identifierOrReference)  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @param string|Reference $identifier  | 
            ||
| 53 | *  | 
            ||
| 54 | * @return bool  | 
            ||
| 55 | */  | 
            ||
| 56 | public static function isValid($identifier): bool  | 
            ||
| 66 | |||
| 67 | /**  | 
            ||
| 68 | * @return string  | 
            ||
| 69 | */  | 
            ||
| 70 | public function containerIdentifier(): string  | 
            ||
| 74 | |||
| 75 | /**  | 
            ||
| 76 | * @return string  | 
            ||
| 77 | */  | 
            ||
| 78 | public function serviceIdentifier(): string  | 
            ||
| 82 | }  | 
            ||
| 83 |