Completed
Push — master ( 75e1cb...c3c281 )
by Gabriel
02:18
created

Option::setValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Waredesk\Models\Product\Variant;
4
5
use DateTime;
6
7
class Option
8
{
9
    private $id;
10
    private $label;
11
    private $value;
12
    private $creation_datetime;
13
    private $modification_datetime;
14
15
    public function getId(): ?int
16
    {
17
        return $this->id;
18
    }
19
20
    public function setId(int $id)
21
    {
22
        $this->id = $id;
23
    }
24
25
    public function getLabel(): ?string
26
    {
27
        return $this->label;
28
    }
29
30
    public function setLabel(string $label)
31
    {
32
        $this->label = $label;
33
    }
34
35
    public function getValue(): ?string
36
    {
37
        return $this->value;
38
    }
39
40
    public function setValue(string $value)
41
    {
42
        $this->value = $value;
43
    }
44
45
    public function getCreationDatetime(): ?DateTime
46
    {
47
        return $this->creation_datetime;
48
    }
49
50
    public function setCreationDatetime(DateTime $creation_datetime)
51
    {
52
        $this->creation_datetime = $creation_datetime;
53
    }
54
55
    public function getModificationDatetime(): ?DateTime
56
    {
57
        return $this->modification_datetime;
58
    }
59
60
    public function setModificationDatetime(DateTime $modification_datetime)
61
    {
62
        $this->modification_datetime = $modification_datetime;
63
    }
64
}
65