Completed
Push — master ( f18332...65e840 )
by Gabriel
03:52
created

ThreePlCentral::setFacilityId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace ThreePlCentral;
4
5
use DateTime;
6
use ThreePlCentral\Order\OrderRepository;
7
8
class ThreePlCentral
9
{
10
    private $id;
11
    private $customerId;
12
    private $facilityId;
13
    private $login;
14
    private $password;
15
16
    public function __construct(string $id, string $customerId, string $facilityId, string $login, string $password) {
17
        $this->id = $id;
18
        $this->customerId = $customerId;
19
        $this->facilityId = $facilityId;
20
        $this->login = $login;
21
        $this->password = $password;
22
    }
23
24
    public function findOrders(DateTime $beginDate, DateTime $endDate): array
25
    {
26
        return OrderRepository::findOrders($this, $beginDate, $endDate);
27
    }
28
29
    public function getId(): string
30
    {
31
        return $this->id;
32
    }
33
34
    public function setId(string $id)
35
    {
36
        $this->id = $id;
37
    }
38
39
    public function getCustomerId(): string
40
    {
41
        return $this->customerId;
42
    }
43
44
    public function setCustomerId(string $customerId)
45
    {
46
        $this->customerId = $customerId;
47
    }
48
49
    public function getFacilityId(): string
50
    {
51
        return $this->facilityId;
52
    }
53
54
    public function setFacilityId(string $facilityId)
55
    {
56
        $this->facilityId = $facilityId;
57
    }
58
59
    public function getLogin(): string
60
    {
61
        return $this->login;
62
    }
63
64
    public function setLogin(string $login)
65
    {
66
        $this->login = $login;
67
    }
68
69
    public function getPassword(): string
70
    {
71
        return $this->password;
72
    }
73
74
    public function setPassword(string $password)
75
    {
76
        $this->password = $password;
77
    }
78
}
79