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

Price   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 69
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
A getPriceListId() 0 4 1
A setPriceListId() 0 4 1
A getCurrency() 0 4 1
A setCurrency() 0 4 1
A getPrice() 0 4 1
A setPrice() 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 Price
8
{
9
    private $id;
10
    private $price_list_id;
11
    private $currency;
12
    private $price;
13
    private $creation_datetime;
14
    private $modification_datetime;
15
16
    public function getId(): ?int
17
    {
18
        return $this->id;
19
    }
20
21
    public function setId(int $id)
22
    {
23
        $this->id = $id;
24
    }
25
26
    public function getPriceListId(): ?int
27
    {
28
        return $this->price_list_id;
29
    }
30
31
    public function setPriceListId(int $price_list_id)
32
    {
33
        $this->price_list_id = $price_list_id;
34
    }
35
36
    public function getCurrency(): ?string
37
    {
38
        return $this->currency;
39
    }
40
41
    public function setCurrency(string $currency)
42
    {
43
        $this->currency = $currency;
44
    }
45
46
    public function getPrice(): ?int
47
    {
48
        return $this->price;
49
    }
50
51
    public function setPrice(int $price)
52
    {
53
        $this->price = $price;
54
    }
55
56
    public function getCreationDatetime(): ?DateTime
57
    {
58
        return $this->creation_datetime;
59
    }
60
61
    public function setCreationDatetime(DateTime $creation_datetime)
62
    {
63
        $this->creation_datetime = $creation_datetime;
64
    }
65
66
    public function getModificationDatetime(): ?DateTime
67
    {
68
        return $this->modification_datetime;
69
    }
70
71
    public function setModificationDatetime(DateTime $modification_datetime)
72
    {
73
        $this->modification_datetime = $modification_datetime;
74
    }
75
}
76