| 1 | <?php |
||
| 8 | final class QueueCommand implements QueueableCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var object |
||
| 12 | */ |
||
| 13 | private $command; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $name; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param object $command |
||
| 22 | * @param string|null $name |
||
| 23 | */ |
||
| 24 | 8 | public function __construct($command, $name = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the wrapped command |
||
| 38 | * |
||
| 39 | * @return object |
||
| 40 | */ |
||
| 41 | 4 | public function getCommand() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 4 | public function getName() |
|
| 53 | } |
||
| 54 |