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