| 1 | <?php |
||
| 9 | abstract class SlimeCommand implements ConsoleCommand |
||
| 10 | { |
||
| 11 | protected $mandatoryArgs = []; |
||
| 12 | protected $acceptedArgs = []; |
||
| 13 | protected $args = []; |
||
| 14 | |||
| 15 | public function __construct(array $args) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | public abstract function run(); |
||
| 26 | |||
| 27 | private function parseArgs(array $args) |
||
| 35 | |||
| 36 | protected function getArg($position) |
||
| 40 | } |