1 | <?php |
||
19 | class PredisUniquePullCommandQueue implements PullCommandQueue |
||
20 | { |
||
21 | /** |
||
22 | * @var Client<Client> |
||
23 | */ |
||
24 | private $client; |
||
25 | |||
26 | /** |
||
27 | * @var Serializer |
||
28 | */ |
||
29 | private $serializer; |
||
30 | |||
31 | /** |
||
32 | * @var LoggerInterface |
||
33 | */ |
||
34 | private $logger; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $queue_name; |
||
40 | |||
41 | /** |
||
42 | * @param Client<Client> $client |
||
|
|||
43 | * @param Serializer $serializer |
||
44 | * @param LoggerInterface $logger |
||
45 | * @param string $queue_name |
||
46 | */ |
||
47 | 4 | public function __construct(Client $client, Serializer $serializer, LoggerInterface $logger, string $queue_name) |
|
54 | |||
55 | /** |
||
56 | * Publish command to queue. |
||
57 | * |
||
58 | * @param Command $command |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | 1 | public function publish(Command $command): bool |
|
71 | |||
72 | /** |
||
73 | * Pop command from queue. Return NULL if queue is empty. |
||
74 | * |
||
75 | * @return Command|null |
||
76 | */ |
||
77 | 3 | public function pull(): ?Command |
|
104 | } |
||
105 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.