1 | <?php |
||
8 | class EditableColumn extends NamedColumn |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $url = null; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $title = null; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $editableMode = 'popup'; |
||
24 | |||
25 | /** |
||
26 | * Text constructor. |
||
27 | * |
||
28 | * @param $name |
||
29 | * @param $label |
||
30 | */ |
||
31 | public function __construct($name, $label = null) |
||
41 | |||
42 | /** |
||
43 | * @param bool $sortable |
||
|
|||
44 | * |
||
45 | * @return $this |
||
46 | */ |
||
47 | public function getTitle() |
||
55 | |||
56 | /** |
||
57 | * @param bool $sortable |
||
58 | * |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function setTitle($title) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getUrl() |
||
79 | |||
80 | /** |
||
81 | * @param $url |
||
82 | * @return string |
||
83 | */ |
||
84 | public function setUrl($url) |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getEditableMode() |
||
98 | |||
99 | /** |
||
100 | * @param $url |
||
101 | * @return string |
||
102 | */ |
||
103 | public function setEditableMode($mode) |
||
111 | |||
112 | /** |
||
113 | * @return array |
||
114 | */ |
||
115 | public function toArray() |
||
126 | } |
||
127 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.