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

PermissionForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 11 1
1
<?php namespace Distilleries\Expendable\Http\Forms\Permission;
2
3
use Distilleries\FormBuilder\FormValidator;
4
5
class PermissionForm extends FormValidator {
6
7
    public function buildForm()
8
    {
9
        $areas          = $this->model->getArea();
10
        $areas_selected = $this->model->getAreaSelected();
11
12
        $this->add('permission', 'choice_area', [
13
            'choices'  => $areas,
14
            'selected' => $areas_selected
15
        ]);
16
        $this->addDefaultActions();
17
    }
18
}