1 | <?php |
||
10 | class RadioField extends CrudFieldAbstract |
||
11 | { |
||
12 | use Hintable, Defaultable; |
||
13 | |||
14 | protected $type = 'radio'; |
||
15 | |||
16 | /** |
||
17 | * Set options for the fields |
||
18 | * @param array $options array of option |
||
19 | * @return mixed |
||
|
|||
20 | */ |
||
21 | public function options(array $options) |
||
27 | |||
28 | /** |
||
29 | * Add option to a field that is already set |
||
30 | * @param string $value text that is shown to the user |
||
31 | * @param null|string $key the value of the new text |
||
32 | */ |
||
33 | public function addOption($value, $key = null) |
||
43 | |||
44 | } |
||
45 |
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.