StatusUpdate::setStatus()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
}