1 | <?php namespace PascalKleindienst\FormListGenerator\Data; |
||
9 | class Column |
||
10 | { |
||
11 | /** |
||
12 | * @var string List column name. |
||
13 | */ |
||
14 | public $columnName; |
||
15 | |||
16 | /** |
||
17 | * @var string List column label. |
||
18 | */ |
||
19 | public $label; |
||
20 | |||
21 | /** |
||
22 | * @var string Display mode. Text, number |
||
23 | */ |
||
24 | public $type = 'text'; |
||
25 | |||
26 | /** |
||
27 | * @var boolean Specifies whether a column is clickable or not |
||
28 | */ |
||
29 | public $clickable = false; |
||
30 | |||
31 | /** |
||
32 | * @var string Specifies a default value when value is empty. |
||
33 | */ |
||
34 | public $default; |
||
35 | |||
36 | /** |
||
37 | * @var string Specify a CSS class to attach to the list cell element. |
||
38 | */ |
||
39 | public $cssClass; |
||
40 | |||
41 | /** |
||
42 | * @var string Specify a format or style for the column value, such as a Date. |
||
43 | */ |
||
44 | public $format; |
||
45 | |||
46 | /** |
||
47 | * @var string Specifies a path for partial-type fields. |
||
48 | */ |
||
49 | public $path; |
||
50 | |||
51 | /** |
||
52 | * @var array Raw field configuration. |
||
53 | */ |
||
54 | public $config; |
||
55 | |||
56 | /** |
||
57 | * @var string Record Url |
||
58 | */ |
||
59 | protected $recordUrl; |
||
60 | |||
61 | /** |
||
62 | * Constructor. |
||
63 | * @param string $columnName |
||
|
|||
64 | * @param string $label |
||
65 | */ |
||
66 | public function __construct($name, $config, $recordUrl) |
||
73 | |||
74 | /** |
||
75 | * Setup the column properties |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | protected function setup() |
||
96 | |||
97 | /** |
||
98 | * Get the value for the column from the record |
||
99 | * |
||
100 | * @param array $record |
||
101 | * @return void|string |
||
102 | */ |
||
103 | public function getValue(array $record) |
||
129 | |||
130 | /** |
||
131 | * Get the record url |
||
132 | * |
||
133 | * @param array $record |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getRecordUrl(array $record) |
||
148 | } |
||
149 |
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.