| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function __construct(Queue $queue) |
||
| 16 | { |
||
| 17 | parent::__construct('manager', 1.0); |
||
| 18 | |||
| 19 | $manCommand = new ListCommand; |
||
| 20 | $manCommand->setName('man'); |
||
| 21 | |||
| 22 | $this->add($manCommand); |
||
| 23 | $this->add(new ListTasks($queue)); |
||
| 24 | $this->add(new AddTask($queue)); |
||
| 25 | $this->add(new ShowTask($queue)); |
||
| 26 | $this->add(new EditTask($queue)); |
||
| 27 | $this->add(new DeleteTask($queue)); |
||
| 28 | $this->add(new RestoreTasks($queue)); |
||
| 29 | $this->add(new FlushTasks($queue)); |
||
| 30 | $this->setDefaultCommand('man'); |
||
| 31 | } |
||
| 33 |