1 | <?php |
||
12 | class Node extends AbstractClient { |
||
13 | |||
14 | /** |
||
15 | * Authenticate against a Disque node. |
||
16 | * |
||
17 | * @param $password |
||
18 | * @return boolean true if authenticated. False otherwise. |
||
19 | * |
||
20 | * @throws CommandException |
||
21 | */ |
||
22 | 2 | public function auth($password) |
|
27 | |||
28 | |||
29 | /** |
||
30 | * Send a ping command to the connected server. |
||
31 | * |
||
32 | * @return boolean True if the ping is acknowleged. False otherwise. |
||
33 | */ |
||
34 | 2 | public function ping() |
|
38 | |||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 1 | public function info() |
|
67 | |||
68 | |||
69 | /** |
||
70 | * @return NodeInfo[] |
||
71 | */ |
||
72 | 2 | public function hello() |
|
101 | |||
102 | |||
103 | /** |
||
104 | * DELETE jobs from the connected node. |
||
105 | * |
||
106 | * @param string[] $jobs Job IDs to delete. |
||
107 | * |
||
108 | * @return int Number of jobs deleted |
||
109 | */ |
||
110 | 3 | public function del(array $jobs) |
|
119 | |||
120 | |||
121 | /** |
||
122 | * Retrieve an Iterator over available jobs on the connected Disque node. |
||
123 | * |
||
124 | * @param int $count |
||
125 | * @param array $queues |
||
126 | * @param array $states |
||
127 | * @param $format |
||
128 | * |
||
129 | * @return Iterator |
||
130 | * @see https://github.com/antirez/disque#jscan-cursor-count-count-busyloop-queue-queue-state-state1-state-state2--state-staten-reply-allid |
||
131 | */ |
||
132 | 1 | public function jscan($count = 50, array $queues = [], array $states = [], $format = JScanIterator::FORMAT_ID) |
|
142 | } |
||
143 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.