1 | <?php |
||
16 | class BaseRunner |
||
17 | { |
||
18 | /** |
||
19 | * Returns an instance of the QueuedJobService. |
||
20 | * |
||
21 | * @return QueuedJobService |
||
22 | */ |
||
23 | public function getService() |
||
27 | |||
28 | /** |
||
29 | * Write in a format expected by the output medium (CLI/HTML). |
||
30 | * |
||
31 | * @param string $line Line to be written out, without the newline character. |
||
32 | * @param null|string $prefix |
||
33 | */ |
||
34 | protected function writeLogLine($line, $prefix = null) |
||
46 | |||
47 | /** |
||
48 | * Logs the status of the queued job descriptor. |
||
49 | * |
||
50 | * @param bool|null|QueuedJobDescriptor $descriptor |
||
51 | * @param string $queue |
||
52 | */ |
||
53 | protected function logDescriptorStatus($descriptor, $queue) |
||
67 | |||
68 | /** |
||
69 | * Logs the number of current jobs per queue |
||
70 | */ |
||
71 | public function listJobs() |
||
80 | } |
||
81 |
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: