Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
4 / 4 |
| Schedule | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
4 / 4 |
| exec | |
100.00% |
1 / 1 |
2 | |
100.00% |
4 / 4 |
|||
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Qmp\Laravel\CommandsLaravel\Console\Scheduling; |
| 5 | |
| 6 | use Illuminate\Console\Scheduling\Schedule as ScheduleOrigin; |
| 7 | |
| 8 | class Schedule extends ScheduleOrigin |
| 9 | { |
| 10 | /** |
| 11 | * Add a new command event to the schedule. |
| 12 | * |
| 13 | * @param string $command |
| 14 | * @param array $parameters |
| 15 | * @return \Qmp\Laravel\CommandsLaravel\Console\Scheduling\Event |
| 16 | */ |
| 17 | public function exec($command, array $parameters = []) |
| 18 | { |
| 19 | if (count($parameters)) { |
| 20 | $command .= ' '.$this->compileParameters($parameters); |
| 21 | } |
| 22 | |
| 23 | $this->events[] = $event = new Event($this->eventMutex, $command, $this->timezone); |
| 24 | |
| 25 | return $event; |
| 26 | } |
| 27 | |
| 28 | } |