ThreePlCentral   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 1
dl 0
loc 72
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A findOrders() 0 4 1
A getId() 0 4 1
A setId() 0 4 1
A getCustomerId() 0 4 1
A setCustomerId() 0 4 1
A getFacilityId() 0 4 1
A setFacilityId() 0 4 1
A getLogin() 0 4 1
A setLogin() 0 4 1
A getPassword() 0 4 1
A setPassword() 0 4 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