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

Option   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 58
ccs 0
cts 25
cp 0
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
A getLabel() 0 4 1
A setLabel() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
A getCreationDatetime() 0 4 1
A setCreationDatetime() 0 4 1
A getModificationDatetime() 0 4 1
A setModificationDatetime() 0 4 1
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