Passed
Push — master ( 7ad944...9954d6 )
by Viacheslav
02:21
created

App   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 21
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUpCommands() 0 10 1
1
<?php
2
3
namespace Swaggest\JsonDiff\Cli;
4
5
use Yaoi\Command;
6
use Yaoi\Command\Definition;
7
8
class App extends Command\Application
9
{
10
    public $diff;
11
    public $apply;
12
    public $rearrange;
13
    public $info;
14
15
    /**
16
     * @param Definition $definition
17
     * @param \stdClass|static $commandDefinitions
18
     */
19
    static function setUpCommands(Definition $definition, $commandDefinitions)
20
    {
21
        $definition->name = 'json-diff';
22
        $definition->version = 'v2.0.0';
23
        $definition->description = 'JSON diff and apply tool for PHP, https://github.com/swaggest/json-diff';
24
25
        $commandDefinitions->diff = Diff::definition();
26
        $commandDefinitions->apply = Apply::definition();
27
        $commandDefinitions->rearrange = Rearrange::definition();
28
        $commandDefinitions->info = Info::definition();
29
    }
30
}