1 | <?php |
||
19 | trait FluentFields |
||
20 | { |
||
21 | /* |
||
22 | |-------------------------------------------------------------------------- |
||
23 | | Methods for providing Fluent Fields |
||
24 | |-------------------------------------------------------------------------- |
||
25 | */ |
||
26 | |||
27 | public function addFields(array $fields) |
||
33 | |||
34 | public function addField(CrudFieldInterface $field) |
||
38 | |||
39 | /* |
||
40 | |-------------------------------------------------------------------------- |
||
41 | | Definition of all Field Types |
||
42 | |-------------------------------------------------------------------------- |
||
43 | */ |
||
44 | |||
45 | public function addressField(string $name): AddressField |
||
49 | |||
50 | public function checkboxField(string $name): CheckboxField |
||
54 | |||
55 | public function datePickerField(string $name): DatePickerField |
||
59 | |||
60 | public function dateTimePickerField(string $name): DateTimePickerField |
||
64 | |||
65 | public function emailField(string $name): EmailField |
||
69 | |||
70 | public function hiddenField(string $name): HiddenField |
||
74 | |||
75 | public function numberField(string $name): NumberField |
||
79 | |||
80 | public function passwordField(string $name): PasswordField |
||
84 | |||
85 | public function summernoteField(string $name): SummernoteField |
||
89 | |||
90 | public function textareaField(string $name): TextareaField |
||
94 | |||
95 | public function textField(string $name): TextField |
||
99 | |||
100 | public function urlField(string $name): UrlField |
||
104 | } |
||
105 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.