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

Product::__construct()   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 0
crap 2
1
<?php
2
3
namespace Waredesk\Models;
4
5
use DateTime;
6
use Waredesk\Collections\Products\Variants;
7
8
class Product
9
{
10
    private $id;
11
    private $images;
12
    private $variants;
13
    private $name;
14
    private $description;
15
    private $notes;
16
    private $creation_datetime;
17
    private $modification_datetime;
18
19
    public function __construct()
20
    {
21
        $this->variants = new Variants();
22
    }
23
24
    public function getId(): ?int
25
    {
26
        return $this->id;
27
    }
28
29
    public function setId(int $id)
30
    {
31
        $this->id = $id;
32
    }
33
34
    public function getImages(): ?array
35
    {
36
        return $this->images;
37
    }
38
39
    public function setImages(array $images)
40
    {
41
        $this->images = $images;
42
    }
43
44
    public function getVariants(): ?Variants
45
    {
46
        return $this->variants;
47
    }
48
49
    public function setVariants(Variants $variants)
50
    {
51
        $this->variants = $variants;
52
    }
53
54
    public function getName(): ?string
55
    {
56
        return $this->name;
57
    }
58
59
    public function setName(string $name)
60
    {
61
        $this->name = $name;
62
    }
63
64
    public function getDescription(): ?string
65
    {
66
        return $this->description;
67
    }
68
69
    public function setDescription(string $description)
70
    {
71
        $this->description = $description;
72
    }
73
74
    public function getNotes(): ?string
75
    {
76
        return $this->notes;
77
    }
78
79
    public function setNotes(string $notes)
80
    {
81
        $this->notes = $notes;
82
    }
83
84
    public function getCreationDatetime(): ?DateTime
85
    {
86
        return $this->creation_datetime;
87
    }
88
89
    public function setCreationDatetime(DateTime $creation_datetime)
90
    {
91
        $this->creation_datetime = $creation_datetime;
92
    }
93
94
    public function getModificationDatetime(): ?DateTime
95
    {
96
        return $this->modification_datetime;
97
    }
98
99
    public function setModificationDatetime(DateTime $modification_datetime)
100
    {
101
        $this->modification_datetime = $modification_datetime;
102
    }
103
}
104