| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Tunnel implements Argument |
||
| 16 | { |
||
| 17 | private $dependency; |
||
| 18 | private $argument; |
||
| 19 | |||
| 20 | 9 | public function __construct(Name $dependency, Argument $argument) |
|
| 21 | { |
||
| 22 | 9 | $this->dependency = $dependency; |
|
| 23 | 9 | $this->argument = $argument; |
|
| 24 | 9 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 1 | public static function fromValue($value, Arguments $arguments): Argument |
|
| 30 | { |
||
| 31 | 1 | throw new LogicException('Can\'t be used outside Service::tunnel()'); |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 2 | public function resolve( |
|
| 44 | } |
||
| 45 | } |
||
| 46 |