Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 76.92% |
Changes | 0 |
1 | <?php |
||
11 | class Resolve extends Base |
||
12 | { |
||
13 | public $pointer; |
||
14 | public $path; |
||
15 | |||
16 | /** |
||
17 | * @param Definition $definition |
||
18 | * @param \stdClass|static $options |
||
19 | */ |
||
20 | 1 | static function setUpDefinition(Definition $definition, $options) |
|
21 | { |
||
22 | 1 | $options->path = Option::create()->setType()->setIsUnnamed() |
|
23 | 1 | ->setDescription('Path to JSON/YAML file'); |
|
24 | 1 | $options->pointer = Option::create()->setType()->setIsUnnamed() |
|
25 | 1 | ->setDescription('JSON Pointer, example /key4/1/a'); |
|
26 | 1 | } |
|
27 | |||
28 | 1 | public function performAction() |
|
38 | 1 | } |
|
39 | |||
40 | } |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.