Passed
Pull Request — master (#721)
by Florian
09:26
created

Textarea::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\Components;
4
5
use Illuminate\View\Component;
6
7
class Textarea extends Component
8
{
9
    public $id, $name, $label, $placeholder;
10
    public $topclass, $inputclass;
11
    public $disabled, $required;
12
    public $rows;
13
14
    public function __construct(
15
            $id = null, $name = null,
16
            $label = 'Input Label', $placeholder = null,
17
            $topclass = null, $inputclass = null,
18
            $disabled = false, $required = false,
19
            $rows = '10'
20
        )
21
    {
22
        $this->id = $id;
23
        $this->name = $name;
24
        $this->label = $label;
25
        $this->placeholder = $placeholder;
26
        $this->topclass = $topclass;
27
        $this->inputclass = $inputclass;
28
        $this->required = $required;
29
        $this->disabled = $disabled;
30
        $this->rows = $rows;
31
    }
32
33
    public function render()
34
    {
35
        return view('adminlte::textarea');
36
    }
37
}