| 1 | <?php |
||
| 5 | class Factory |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * rule string or array. |
||
| 9 | * |
||
| 10 | * @param string $path |
||
| 11 | * |
||
| 12 | * @return \LaravelPlus\Extension\Specs\InputSpec |
||
| 13 | */ |
||
| 14 | 3 | public function make($path) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Get the specified spec value. |
||
| 21 | * |
||
| 22 | * @param string $key |
||
| 23 | * @param mixed $default |
||
| 24 | * |
||
| 25 | * @return \LaravelPlus\Extension\Repository\NamespacedRepository|string |
||
| 26 | */ |
||
| 27 | 2 | function get($key, $default = null) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $namespace |
||
| 34 | * |
||
| 35 | * @return \LaravelPlus\Extension\Specs\Translator |
||
| 36 | */ |
||
| 37 | 1 | public function translator($namespace) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param string | \LaravelPlus\Extension\Specs\InputSpec $pathOrSpec |
||
| 44 | * @param array $in |
||
| 45 | * |
||
| 46 | * @return \LaravelPlus\Extension\Specs\InputModel |
||
| 47 | */ |
||
| 48 | 1 | public function inputModel($pathOrSpec, array $in = null) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $id |
||
| 62 | * @param string $path |
||
| 63 | * |
||
| 64 | * @return \LaravelPlus\Extension\Specs\FormModel |
||
| 65 | */ |
||
| 66 | 1 | public function formModel($id, $path) |
|
| 70 | |||
| 71 | } |
||
| 72 |