Choice   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 37
ccs 0
cts 31
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B __construct() 0 32 1
1
<?php
2
3
namespace SpeckCatalog\Form;
4
5
class Choice extends AbstractForm
6
{
7
    protected $originalFields = array('choice_id');
8
9
    public function __construct()
10
    {
11
        parent::__construct();
12
13
        $this->add(array(
14
            'name' => 'option_id',
15
            'attributes' => array(
16
                'type' => 'hidden'
17
            ),
18
        ));
19
        $this->add(array(
20
            'name' => 'choice_id',
21
            'attributes' => array(
22
                'type' => 'hidden'
23
            ),
24
        ));
25
        $this->add(array(
26
            'name' => 'product_id',
27
            'attributes' => array(
28
                'type' => 'hidden'
29
            ),
30
        ));
31
        $this->add(array(
32
            'name' => 'override_name',
33
            'attributes' => array(
34
                'type' => 'text'
35
            ),
36
            'options' => array(
37
                'label' => 'Name',
38
            ),
39
        ));
40
    }
41
}
42