1 | <?php |
||
7 | class Text extends Field |
||
8 | { |
||
9 | use PlainInput; |
||
10 | |||
11 | /** |
||
12 | * Render this filed. |
||
13 | * |
||
14 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
15 | */ |
||
16 | public function render() |
||
35 | |||
36 | /** |
||
37 | * Add inputmask to an elements. |
||
38 | * |
||
39 | * @param array $options |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function inputmask($options) |
||
51 | |||
52 | /** |
||
53 | * Encode options to Json. |
||
54 | * |
||
55 | * @param array $options |
||
56 | * |
||
57 | * @return $json |
||
58 | */ |
||
59 | protected function json_encode_options($options) |
||
69 | |||
70 | /** |
||
71 | * Prepare options. |
||
72 | * |
||
73 | * @param array $options |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | protected function prepare_options($options) |
||
97 | } |
||
98 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.