Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function __construct($name = "Atog.Simple-Api-Client", $version = "v1.0") |
||
29 | { |
||
30 | parent::__construct($name, $version); |
||
31 | |||
32 | // set paths |
||
33 | $sep = DIRECTORY_SEPARATOR; |
||
34 | $this->basePath = __DIR__ . "$sep..$sep..$sep"; |
||
35 | $this->dirs['endpoint'] = "src{$sep}Endpoints"; |
||
36 | $this->dirs['model'] = "src{$sep}Models"; |
||
37 | |||
38 | // add commands |
||
39 | $this->add(new EndpointCommand()); |
||
40 | $this->add(new ModelCommand()); |
||
41 | } |
||
42 | |||
61 |