| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class EditPage extends Component |
||
| 9 | { |
||
| 10 | public $name; |
||
| 11 | |||
| 12 | public $route; |
||
| 13 | |||
| 14 | public $model; |
||
| 15 | |||
| 16 | public $formclass; |
||
| 17 | |||
| 18 | public $formid; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new component instance. |
||
| 22 | * |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function __construct($name, $route, $model, $formclass = null, $formid = null) |
||
| 26 | { |
||
| 27 | $this->name = Str::ucfirst($name); |
||
| 28 | $this->route = $route ?? Str::plural(str_replace(' ', '_', $name)); |
||
| 29 | $this->model = $model; |
||
| 30 | $this->formclass = $formclass; |
||
| 31 | $this->formid = $formid; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the view / contents that represent the component. |
||
| 36 | * |
||
| 37 | * @return \Illuminate\Contracts\View\View|\Closure|string |
||
| 38 | */ |
||
| 39 | public function render() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |