Completed
Push — master ( 188ffb...31684b )
by Maxime
02:48
created

ServiceForm::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php namespace Distilleries\Expendable\Http\Forms\Service;
2
3
use Distilleries\FormBuilder\FormValidator;
4
5
class ServiceForm extends FormValidator {
6
7
    public static $rules = [
8
        'action' => 'required|unique:services'
9
    ];
10
11
    public function buildForm()
12
    {
13
        $this
14
            ->add('id', 'hidden')
15
            ->add('action', 'text');
16
17
        $this->addDefaultActions();
18
    }
19
}