1 | <?php |
||
16 | class Entry extends Item |
||
17 | { |
||
18 | /** |
||
19 | * Set menu entry name. |
||
20 | * |
||
21 | * @param $value |
||
22 | * |
||
23 | * @return $this |
||
24 | */ |
||
25 | public function setName($value) |
||
31 | |||
32 | /** |
||
33 | * Set menu entry URL. |
||
34 | * |
||
35 | * @param $value |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function setUrl($value) |
||
45 | |||
46 | /** |
||
47 | * Set menu entry weight. |
||
48 | * |
||
49 | * @param $value |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setWeight($value) |
||
59 | |||
60 | /** |
||
61 | * Get menu entry weight. |
||
62 | * |
||
63 | * @return integer |
||
|
|||
64 | */ |
||
65 | public function getWeight() |
||
69 | } |
||
70 |
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.