1 | <?php |
||
17 | class UpdateCommand extends AbstractController implements CommandInterface |
||
18 | { |
||
19 | /** |
||
20 | * Execute the controller. |
||
21 | * |
||
22 | * @return boolean |
||
23 | * |
||
24 | * @since 1.0 |
||
25 | */ |
||
26 | public function execute() |
||
44 | |||
45 | /** |
||
46 | * Get the command's description |
||
47 | * |
||
48 | * @return string |
||
49 | * |
||
50 | * @since 1.0 |
||
51 | */ |
||
52 | public function getDescription() |
||
56 | |||
57 | /** |
||
58 | * Get the command's title |
||
59 | * |
||
60 | * @return string |
||
61 | * |
||
62 | * @since 1.0 |
||
63 | */ |
||
64 | public function getTitle() |
||
68 | |||
69 | /** |
||
70 | * Execute a command on the server. |
||
71 | * |
||
72 | * @param string $command The command to execute. |
||
73 | * |
||
74 | * @return string Return data from the command |
||
75 | * |
||
76 | * @since 1.0 |
||
77 | * @throws \RuntimeException |
||
78 | */ |
||
79 | private function runCommand($command) |
||
100 | } |
||
101 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: