| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __construct(UriInterface $uri) |
||
| 25 | { |
||
| 26 | if ($uri->getPath() === '') { |
||
| 27 | throw new \LogicException('URI path cannot be empty'); |
||
| 28 | } |
||
| 29 | |||
| 30 | if (substr($uri->getPath(), -1) === '/') { |
||
| 31 | throw new \LogicException('URI path cannot end with a slash.'); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->uri = $uri; |
||
| 35 | } |
||
| 36 | |||
| 49 |