ThreePlCentral::setPassword()   A
last analyzed

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($id, $customerId, $facilityId, $login, $password)
17
    {
18
        $this->id = $id;
19
        $this->customerId = $customerId;
20
        $this->facilityId = $facilityId;
21
        $this->login = $login;
22
        $this->password = $password;
23
    }
24
25
    public function findOrders(DateTime $beginDate, DateTime $endDate)
26
    {
27
        return OrderRepository::findOrders($this, $beginDate, $endDate);
28
    }
29
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
35
    public function setId($id)
36
    {
37
        $this->id = $id;
38
    }
39
40
    public function getCustomerId()
41
    {
42
        return $this->customerId;
43
    }
44
45
    public function setCustomerId($customerId)
46
    {
47
        $this->customerId = $customerId;
48
    }
49
50
    public function getFacilityId()
51
    {
52
        return $this->facilityId;
53
    }
54
55
    public function setFacilityId($facilityId)
56
    {
57
        $this->facilityId = $facilityId;
58
    }
59
60
    public function getLogin()
61
    {
62
        return $this->login;
63
    }
64
65
    public function setLogin($login)
66
    {
67
        $this->login = $login;
68
    }
69
70
    public function getPassword()
71
    {
72
        return $this->password;
73
    }
74
75
    public function setPassword($password)
76
    {
77
        $this->password = $password;
78
    }
79
}
80