Option::getOptionId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace SpeckCatalog\Model;
4
5
class Option extends AbstractModel
6
{
7
    protected $optionId;
8
    protected $name;
9
    protected $instruction;
10
    protected $required = 0;
11
    protected $optionTypeId;
12
    protected $builder = 0;
13
14
    /**
15
     * @return optionId
16
     */
17 8
    public function getOptionId()
18
    {
19 8
        return $this->optionId;
20
    }
21
22
    /**
23
     * @param $optionId
24
     * @return self
25
     */
26 5
    public function setOptionId($optionId)
27
    {
28 5
        $this->optionId = (int) $optionId;
29 5
        return $this;
30
    }
31
32
    /**
33
     * @return name
34
     */
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    /**
41
     * @param $name
42
     * @return self
43
     */
44 3
    public function setName($name)
45
    {
46 3
        $this->name = $name;
47 3
        return $this;
48
    }
49
50
    /**
51
     * @return instruction
52
     */
53
    public function getInstruction()
54
    {
55
        return $this->instruction;
56
    }
57
58
    /**
59
     * @param $instruction
60
     * @return self
61
     */
62 3
    public function setInstruction($instruction)
63
    {
64 3
        $this->instruction = $instruction;
65 3
        return $this;
66
    }
67
68
    /**
69
     * @return required
70
     */
71 3
    public function getRequired()
72
    {
73 3
        return $this->required;
74
    }
75
76
    /**
77
     * @param $required
78
     * @return self
79
     */
80 6
    public function setRequired($required)
81
    {
82 6
        $this->required = $required;
83 6
        return $this;
84
    }
85
86
    /**
87
     * @return optionTypeId
88
     */
89
    public function getOptionTypeId()
90
    {
91
        return $this->optionTypeId;
92
    }
93
94
    /**
95
     * @param $optionTypeId
96
     * @return self
97
     */
98 3
    public function setOptionTypeId($optionTypeId)
99
    {
100 3
        $this->optionTypeId = $optionTypeId;
101 3
        return $this;
102
    }
103
104
    /**
105
     * @return builder
106
     */
107
    public function getBuilder()
108
    {
109
        return $this->builder;
110
    }
111
112
    /**
113
     * @param $builder
114
     * @return self
115
     */
116 3
    public function setBuilder($builder)
117
    {
118 3
        $this->builder = $builder;
119 3
        return $this;
120
    }
121
}
122