1 | <?php |
||
11 | final class QueueCommand implements QueueableCommand |
||
12 | { |
||
13 | /** |
||
14 | * @var object |
||
15 | */ |
||
16 | private $command; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name; |
||
22 | |||
23 | /** |
||
24 | 8 | * @var string |
|
25 | */ |
||
26 | 8 | private $queueName; |
|
27 | |||
28 | 8 | /** |
|
29 | 5 | * @param object $command |
|
30 | 5 | * @param string|null $name |
|
31 | 5 | * @param string|null $queueName |
|
32 | */ |
||
33 | 8 | public function __construct($command, $name = null, $queueName = null) |
|
49 | 4 | ||
50 | /** |
||
51 | 4 | * Returns the wrapped command |
|
52 | * |
||
53 | * @return object |
||
54 | */ |
||
55 | public function getCommand() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getName() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getQueueName(): string |
||
75 | } |
||
76 |