Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 8 | public function __construct(string $key, array $storage, ?Rule $parent = null) |
|
19 | { |
||
20 | 8 | parent::__construct($key, $storage, $parent); |
|
21 | |||
22 | 8 | if (!$this->path) { |
|
23 | 1 | throw new Path( |
|
24 | 1 | \sprintf( |
|
25 | 1 | 'No `%s` option found for class `%s` on `%s` route', |
|
26 | 1 | 'path', |
|
27 | 1 | __CLASS__, |
|
28 | 1 | $this->getName() |
|
29 | ) |
||
35 |