1 | <?php |
||
5 | class FormModel |
||
6 | { |
||
7 | /** |
||
8 | * @param string $id |
||
9 | * @param string $path |
||
10 | * |
||
11 | * @return static |
||
12 | */ |
||
13 | 1 | public static function make($id, $path) |
|
17 | |||
18 | /** |
||
19 | * Form name for HTML Element. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $id; |
||
24 | |||
25 | /** |
||
26 | * Form spec. |
||
27 | * |
||
28 | * @var \LaravelPlus\Extension\Specs\InputSpec |
||
29 | */ |
||
30 | protected $spec; |
||
31 | |||
32 | /** |
||
33 | * @param string $id |
||
34 | * @param LaravelPlus\Extension\Specs\InputSpec $path |
||
35 | */ |
||
36 | 2 | public function __construct($id, InputSpec $spec) |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 1 | public function id() |
|
49 | |||
50 | /** |
||
51 | * @param $fieldName |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | 1 | public function fieldId($fieldName) |
|
59 | |||
60 | /** |
||
61 | * @param string $method |
||
62 | * |
||
63 | * @return array $arguments |
||
64 | * @return mixed |
||
65 | */ |
||
66 | 1 | public function __call($method, $arguments) |
|
70 | } |
||
71 |