1 | <?php |
||
8 | class Form extends Dto |
||
9 | { |
||
10 | /** |
||
11 | * @var array fields |
||
12 | */ |
||
13 | private $fields = []; |
||
14 | public $actions = []; |
||
15 | |||
16 | /** |
||
17 | * @param Field $field |
||
18 | */ |
||
19 | public function addField(Field $field) |
||
23 | |||
24 | /** |
||
25 | * @param string $name |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function fieldExists($name) { |
||
31 | |||
32 | /** |
||
33 | * @return array |
||
|
|||
34 | */ |
||
35 | public function __toArray() |
||
56 | |||
57 | /** |
||
58 | * @param array $field |
||
59 | * @return int |
||
60 | */ |
||
61 | public static function fieldsOrder(array $field) { |
||
81 | } |
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.