StatusUpdate   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 87
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getDate() 0 4 1
A setDate() 0 4 1
A getTime() 0 4 1
A setTime() 0 4 1
A getStatus() 0 4 1
A setStatus() 0 4 1
A getLocation() 0 4 1
A setLocation() 0 4 1
1
<?php
2
3
namespace Savjee\BpostTrack;
4
5
class StatusUpdate
6
{
7
    private $date;
8
    private $time;
9
    private $status;
10
    private $location;
11
12
    /**
13
     * StatusUpdate constructor.
14
     * @param $date
15
     * @param $time
16
     * @param $status
17
     * @param $location
18
     */
19
    public function __construct($date, $time, $status, $location)
20
    {
21
        $this->setDate($date);
22
        $this->setTime($time);
23
        $this->setStatus($status);
24
        $this->setLocation($location);
25
    }
26
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getDate()
32
    {
33
        return $this->date;
34
    }
35
36
    /**
37
     * @param mixed $date
38
     */
39
    public function setDate($date)
40
    {
41
        $this->date = $date;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getTime()
48
    {
49
        return $this->time;
50
    }
51
52
    /**
53
     * @param mixed $time
54
     */
55
    public function setTime($time)
56
    {
57
        $this->time = $time;
58
    }
59
60
    /**
61
     * @return mixed
62
     */
63
    public function getStatus()
64
    {
65
        return $this->status;
66
    }
67
68
    /**
69
     * @param mixed $status
70
     */
71
    public function setStatus($status)
72
    {
73
        $this->status = $status;
74
    }
75
76
    /**
77
     * @return mixed
78
     */
79
    public function getLocation()
80
    {
81
        return $this->location;
82
    }
83
84
    /**
85
     * @param mixed $location
86
     */
87
    public function setLocation($location)
88
    {
89
        $this->location = $location;
90
    }
91
}