| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | class Reference implements DependencyInterface |
||
| 30 | { |
||
| 31 | private $id; |
||
| 32 | |||
| 33 | private function __construct($id) |
||
| 34 | { |
||
| 35 | $this->id = $id; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getId(): string |
||
| 39 | { |
||
| 40 | return $this->id; |
||
| 41 | } |
||
| 42 | |||
| 43 | public static function to(string $id) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param Container $container |
||
| 50 | */ |
||
| 51 | public function resolve(ContainerInterface $container) |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Restores class state after using `var_export()`. |
||
| 58 | * |
||
| 59 | * @param array $state |
||
| 60 | * @return self |
||
| 61 | * @throws InvalidConfigException when $state property does not contain `id` parameter |
||
| 62 | * @see var_export() |
||
| 63 | */ |
||
| 64 | public static function __set_state($state) |
||
| 75 |