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