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