1 | <?php |
||
14 | class BaseRunner |
||
15 | { |
||
16 | /** |
||
17 | * Returns an instance of the QueuedJobService. |
||
18 | * |
||
19 | * @return QueuedJobService |
||
20 | */ |
||
21 | public function getService() |
||
25 | |||
26 | /** |
||
27 | * Write in a format expected by the output medium (CLI/HTML). |
||
28 | * |
||
29 | * @param string $line Line to be written out, without the newline character. |
||
30 | * @param null|string $prefix |
||
31 | */ |
||
32 | protected function writeLogLine($line, $prefix = null) |
||
44 | |||
45 | /** |
||
46 | * Logs the status of the queued job descriptor. |
||
47 | * |
||
48 | * @param bool|null|QueuedJobDescriptor $descriptor |
||
49 | * @param string $queue |
||
50 | */ |
||
51 | protected function logDescriptorStatus($descriptor, $queue) |
||
65 | |||
66 | /** |
||
67 | * Logs the number of current jobs per queue |
||
68 | */ |
||
69 | public function listJobs() |
||
78 | } |
||
79 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: