Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class ColonParser extends Parser |
||
9 | { |
||
10 | /** |
||
11 | * Create a new class instance. |
||
12 | * |
||
13 | * @param \Illuminate\Contracts\Container\Container $app |
||
14 | * @return void |
||
15 | */ |
||
16 | 59 | public function __construct(Container $app) |
|
17 | { |
||
18 | 59 | $this->boot($app); |
|
19 | 59 | } |
|
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 37 | protected function parseMatches(array $matches): ParameterInterface |
|
25 | { |
||
26 | 37 | return new Options(head($matches)); |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 42 | protected function getDynamicPattern(): string |
|
35 | } |
||
36 | } |
||
37 |