Completed
Push — feature/EVO-7278-tracking-info... ( 70565f...ea41d2 )
by
unknown
08:58
created

AuditTracking   A

Complexity

Total Complexity 20

Size/Duplication

Total Lines 213
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 20
lcom 1
cbo 0
dl 0
loc 213
ccs 0
cts 47
cp 0
rs 10
c 0
b 0
f 0

19 Methods

Rating   Name   Duplication   Size   Complexity  
A setData() 0 4 1
A getId() 0 4 1
A getThread() 0 4 1
A setThread() 0 4 1
A getUsername() 0 4 1
A setUsername() 0 4 1
A getAction() 0 4 1
A setAction() 0 4 1
A getType() 0 4 1
A setType() 0 4 1
A getLocation() 0 4 1
A setLocation() 0 4 1
A getData() 0 4 2
A getCollectionId() 0 4 1
A setCollectionId() 0 4 1
A getCollectionName() 0 4 1
A setCollectionName() 0 4 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 4 1
1
<?php
2
/**
3
 * document class for Graviton\AuditTrackingBundle\Document\ActivityLog
4
 */
5
6
namespace Graviton\AuditTrackingBundle\Document;
7
8
use Doctrine\Common\Collections\ArrayCollection;
9
10
/**
11
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
12
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
13
 * @link     http://swisscom.ch
14
 */
15
class AuditTracking
16
{
17
    /**
18
     * @var mixed $id
19
     */
20
    protected $id;
21
    
22
    /**
23
     * @var string $thread
24
     */
25
    protected $thread;
26
27
    /**
28
     * @var string $username
29
     */
30
    protected $username;
31
32
    /**
33
     * @var string $action
34
     */
35
    protected $action;
36
37
    /**
38
     * @var string $type
39
     */
40
    protected $type;
41
42
    /**
43
     * @var string $location
44
     */
45
    protected $location;
46
47
    /**
48
     * @var ArrayCollection $data
49
     */
50
    protected $data;
51
52
    /**
53
     * @var string $collectionName
54
     */
55
    protected $collectionId;
56
57
    /**
58
     * @var string $collectionName
59
     */
60
    protected $collectionName;
61
62
    /**
63
     * @var \datetime $createdAt
64
     */
65
    protected $createdAt;
66
67
    /**
68
     * @return mixed
69
     */
70
    public function getId()
71
    {
72
        return $this->id;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getThread()
79
    {
80
        return $this->thread;
81
    }
82
83
    /**
84
     * @param string $thread string id to UUID thread for user
85
     * @return void
86
     */
87
    public function setThread($thread)
88
    {
89
        $this->thread = $thread;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getUsername()
96
    {
97
        return $this->username;
98
    }
99
100
    /**
101
     * @param string $username Current user name
102
     * @return void
103
     */
104
    public function setUsername($username)
105
    {
106
        $this->username = $username;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getAction()
113
    {
114
        return $this->action;
115
    }
116
117
    /**
118
     * @param string $action what happened
119
     * @return void
120
     */
121
    public function setAction($action)
122
    {
123
        $this->action = $action;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getType()
130
    {
131
        return $this->type;
132
    }
133
134
    /**
135
     * @param string $type type of event
136
     * @return void
137
     */
138
    public function setType($type)
139
    {
140
        $this->type = $type;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getLocation()
147
    {
148
        return $this->location;
149
    }
150
151
    /**
152
     * @param string $location where did the action happen
153
     * @return void
154
     */
155
    public function setLocation($location)
156
    {
157
        $this->location = $location;
158
    }
159
160
    /**
161
     * @return object
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use ArrayCollection.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
162
     */
163
    public function getData()
164
    {
165
        return empty($this->data) ? null : $this->data;
166
    }
167
168
    /**
169
     * @param Object $data additional information
170
     * @return void
171
     */
172
    public function setData($data)
173
    {
174
        $this->data = $data;
175
    }
176
177
    /**
178
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use string.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
179
     */
180
    public function getCollectionId()
181
    {
182
        return $this->collectionId;
183
    }
184
185
    /**
186
     * @param mixed $collectionId Collection ID
187
     * @return void
188
     */
189
    public function setCollectionId($collectionId)
190
    {
191
        $this->collectionId = $collectionId;
192
    }
193
194
    /**
195
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use string.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
196
     */
197
    public function getCollectionName()
198
    {
199
        return $this->collectionName;
200
    }
201
202
    /**
203
     * @param mixed $collectionName Collection name
204
     * @return void
205
     */
206
    public function setCollectionName($collectionName)
207
    {
208
        $this->collectionName = $collectionName;
209
    }
210
211
    /**
212
     * @return \datetime
213
     */
214
    public function getCreatedAt()
215
    {
216
        return $this->createdAt;
217
    }
218
219
    /**
220
     * @param \datetime $createdAt when the event took place
221
     * @return void
222
     */
223
    public function setCreatedAt($createdAt)
224
    {
225
        $this->createdAt = $createdAt;
226
    }
227
}
228