1 | <?php |
||
9 | class HumbugAdapter implements AdapterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var HumbugUpdater |
||
13 | */ |
||
14 | private $updater; |
||
15 | |||
16 | /** |
||
17 | * HumbugAdapter constructor. |
||
18 | * |
||
19 | * @param HumbugUpdater $updater |
||
20 | */ |
||
21 | public function __construct(HumbugUpdater $updater) |
||
25 | |||
26 | /** |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function hasUpdate() |
||
33 | |||
34 | /** |
||
35 | * @return mixed |
||
|
|||
36 | */ |
||
37 | public function getOldVersion() |
||
41 | |||
42 | /** |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function getNewVersion() |
||
49 | |||
50 | /** |
||
51 | * @param string $stability |
||
52 | * |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function update($stability = Updater::STABILITY_ANY) |
||
68 | |||
69 | /** |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function rollback() |
||
76 | |||
77 | /** |
||
78 | * @param $stability |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | private function getGithubStability($stability) |
||
94 | |||
95 | /** |
||
96 | * Removes PHAR update leftovers. |
||
97 | */ |
||
98 | private function performCleanup() |
||
106 | } |
||
107 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.