| 1 | <?php |
||
| 14 | final class BeanstalkdDriver implements Driver |
||
| 15 | { |
||
| 16 | private $client; |
||
| 17 | private $tube; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param PheanstalkInterface $client |
||
| 21 | * @param string $tube |
||
| 22 | */ |
||
| 23 | 1 | public function __construct(PheanstalkInterface $client, $tube) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 1 | public function push(Payload $payload) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | 1 | public function pop() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 1 | public function release(Job $job) |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 1 | public function delete(Job $job) |
|
| 77 | } |
||
| 78 |