1 | <?php namespace Indatus\Dispatcher; |
||
12 | class QueueItem |
||
13 | { |
||
14 | /** @var \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface */ |
||
15 | protected $command; |
||
16 | |||
17 | /** @var \Indatus\Dispatcher\Scheduling\Schedulable */ |
||
18 | protected $scheduler; |
||
19 | |||
20 | /** |
||
21 | * @return \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface |
||
22 | */ |
||
23 | 1 | public function getCommand() |
|
27 | |||
28 | /** |
||
29 | * @param \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface $command |
||
30 | */ |
||
31 | 2 | public function setCommand($command) |
|
35 | |||
36 | /** |
||
37 | * @return \Indatus\Dispatcher\Scheduling\Schedulable |
||
38 | */ |
||
39 | 1 | public function getScheduler() |
|
43 | |||
44 | /** |
||
45 | * @param \Indatus\Dispatcher\Scheduling\Schedulable $scheduler |
||
46 | */ |
||
47 | 2 | public function setScheduler($scheduler) |
|
51 | } |
||
52 |