1 | <?php |
||
17 | class PheanstalkQueue implements Queue |
||
18 | { |
||
19 | /** |
||
20 | * @var PheanstalkInterface |
||
21 | */ |
||
22 | private $pheanstalk; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $tubeName; |
||
28 | |||
29 | 15 | public function __construct(PheanstalkInterface $pheanstalk, $tubeName) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 14 | public function push($item, $eta = null) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 11 | public function pop() |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 1 | public function count() |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 1 | public function clear() |
|
81 | |||
82 | 1 | protected function doClear($state) |
|
91 | } |
||
92 |