| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.0054 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | 5 | public function __construct(UriInterface $host, array $config = []) |
|
| 34 | { |
||
| 35 | 5 | if ($host->getHost() === '') { |
|
| 36 | throw new \LogicException('Host can not be empty'); |
||
| 37 | } |
||
| 38 | |||
| 39 | 5 | $this->host = $host; |
|
| 40 | |||
| 41 | 5 | $resolver = new OptionsResolver(); |
|
| 42 | 5 | $this->configureOptions($resolver); |
|
| 43 | 5 | $options = $resolver->resolve($config); |
|
| 44 | |||
| 45 | 5 | $this->replace = $options['replace']; |
|
| 46 | 5 | } |
|
| 47 | |||
| 74 |