1 | <?php |
||
13 | class UpgradeChanges implements ElementInterface, RendererAwareInterface, DataAwareInterface |
||
14 | { |
||
15 | use RendererAwareTrait, DataAwareTrait; |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getTitle() |
||
24 | |||
25 | /** |
||
26 | * @return int |
||
27 | */ |
||
28 | public function getOrder() |
||
32 | |||
33 | /** |
||
34 | * @param Upgrade $context |
||
35 | * |
||
36 | * @return bool |
||
|
|||
37 | */ |
||
38 | public function isRelevantTo(Upgrade $context) |
||
42 | |||
43 | /** |
||
44 | * @param Upgrade $context |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getBody(Upgrade $context) |
||
60 | } |
||
61 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.