| Total Complexity | 6 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 73.08% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class BaseDiff extends Base |
||
| 10 | { |
||
| 11 | public $originalPath; |
||
| 12 | public $newPath; |
||
| 13 | public $rearrangeArrays; |
||
| 14 | |||
| 15 | 1 | static function setUpDefinition(Command\Definition $definition, $options) |
|
| 16 | { |
||
| 17 | 1 | $options->originalPath = Command\Option::create()->setIsUnnamed()->setIsRequired() |
|
| 18 | 1 | ->setDescription('Path to old (original) json file'); |
|
| 19 | |||
| 20 | 1 | $options->newPath = Command\Option::create()->setIsUnnamed()->setIsRequired() |
|
| 21 | 1 | ->setDescription('Path to new json file'); |
|
| 22 | |||
| 23 | 1 | $options->rearrangeArrays = Command\Option::create() |
|
| 24 | 1 | ->setDescription('Rearrange arrays to match original'); |
|
| 25 | |||
| 26 | 1 | parent::setUpDefinition($definition, $options); |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** @var JsonDiff */ |
||
| 30 | protected $diff; |
||
| 31 | |||
| 32 | 3 | protected function prePerform() |
|
| 58 | 3 | } |
|
| 59 | |||
| 60 | } |