Completed
Push — 1.x ( 084efb...fac983 )
by Joel
02:47
created

Event   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 123
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 4 1
A setStatus() 0 6 1
A getId() 0 4 1
A setId() 0 6 1
A getFrom() 0 4 1
A setFrom() 0 6 1
A getTime() 0 4 1
A setTime() 0 6 1
A getTimeNano() 0 4 1
A setTimeNano() 0 6 1
1
<?php
2
3
namespace Docker\API\Model;
4
5
class Event
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $status;
11
    /**
12
     * @var string
13
     */
14
    protected $id;
15
    /**
16
     * @var string
17
     */
18
    protected $from;
19
    /**
20
     * @var int
21
     */
22
    protected $time;
23
    /**
24
     * @var int
25
     */
26
    protected $timeNano;
27
28
    /**
29
     * @return string
30
     */
31
    public function getStatus()
32
    {
33
        return $this->status;
34
    }
35
36
    /**
37
     * @param string $status
38
     *
39
     * @return self
40
     */
41
    public function setStatus($status = null)
42
    {
43
        $this->status = $status;
44
45
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * @param string $id
58
     *
59
     * @return self
60
     */
61
    public function setId($id = null)
62
    {
63
        $this->id = $id;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getFrom()
72
    {
73
        return $this->from;
74
    }
75
76
    /**
77
     * @param string $from
78
     *
79
     * @return self
80
     */
81
    public function setFrom($from = null)
82
    {
83
        $this->from = $from;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @return int
90
     */
91
    public function getTime()
92
    {
93
        return $this->time;
94
    }
95
96
    /**
97
     * @param int $time
98
     *
99
     * @return self
100
     */
101
    public function setTime($time = null)
102
    {
103
        $this->time = $time;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @return int
110
     */
111
    public function getTimeNano()
112
    {
113
        return $this->timeNano;
114
    }
115
116
    /**
117
     * @param int $timeNano
118
     *
119
     * @return self
120
     */
121
    public function setTimeNano($timeNano = null)
122
    {
123
        $this->timeNano = $timeNano;
124
125
        return $this;
126
    }
127
}
128