| 1 | <?php |
||
| 8 | class IronMQ extends Adapter implements QueueAdapterInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The endpoint for all API calls to Digital Ocean (currently at v2) |
||
| 12 | */ |
||
| 13 | // @todo support for all regions |
||
| 14 | protected $apiEndpoint = 'https://mq-aws-us-east-1.iron.io/1'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * List details for an indexed server, or all servers if id is null. |
||
| 18 | * |
||
| 19 | * @param string $queue |
||
| 20 | * @return integer |
||
| 21 | */ |
||
| 22 | public function count($queue) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Receives the name of a queue and clears it. |
||
| 34 | * |
||
| 35 | * @param string $queue |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function clear($queue) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Construct http client request headers. |
||
| 47 | * |
||
| 48 | * @return void |
||
| 49 | */ |
||
| 50 | protected function setHeaders() |
||
| 56 | } |
||
| 57 |