1 | <?php |
||
17 | class Queue |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $name; |
||
23 | |||
24 | /** |
||
25 | * @var DriverInterface |
||
26 | */ |
||
27 | private $driver; |
||
28 | |||
29 | /** |
||
30 | * @var SerializerInterface |
||
31 | */ |
||
32 | private $serializer; |
||
33 | |||
34 | /** |
||
35 | * @var HandlerInterface |
||
36 | */ |
||
37 | private $handler; |
||
38 | |||
39 | 2 | public function __construct( |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 2 | public function getName(): string |
|
58 | |||
59 | /** |
||
60 | * @return DriverInterface |
||
61 | */ |
||
62 | 2 | public function getDriver(): DriverInterface |
|
66 | |||
67 | /** |
||
68 | * @return SerializerInterface |
||
69 | */ |
||
70 | 2 | public function getSerializer(): SerializerInterface |
|
74 | |||
75 | /** |
||
76 | * @return HandlerInterface |
||
77 | */ |
||
78 | 1 | public function getHandler(): HandlerInterface |
|
82 | |||
83 | /** |
||
84 | * @param HandlerInterface $handler |
||
85 | * |
||
86 | * @return Queue |
||
87 | */ |
||
88 | 1 | public function setHandler(HandlerInterface $handler): Queue |
|
94 | |||
95 | 1 | public function addMessage(Message $message) |
|
103 | |||
104 | public function checkQueue() |
||
114 | } |