Completed
Push — feature/EVO-7278-tracking-info... ( d73a1e )
by
unknown
63:38
created

AuditTracking   A

Complexity

Total Complexity 19

Size/Duplication

Total Lines 197
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

19 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getId() 0 4 1
A setId() 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 1
A setData() 0 4 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 4 1
A getTranslatableFields() 0 3 1
A getPreTranslatedFields() 0 3 1
1
<?php
2
/**
3
 * document class for GravitonDyn\ActivityLogBundle\Document\ActivityLog
4
 */
5
6
namespace Graviton\AuditTrackingBundle\Document;
7
use Graviton\I18nBundle\Document\TranslatableDocumentInterface;
8
9
/**
10
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
11
* @license  http://opensource.org/licenses/gpl-license.php GNU Public License
12
* @link     http://swisscom.ch
13
*/
14
class AuditTracking implements TranslatableDocumentInterface
15
{
16
    /**
17
    * @var mixed $id
18
    */
19
    protected $id;
20
    
21
    /**
22
     * @var string $thread
23
     */
24
    protected $thread;
25
26
    /**
27
     * @var string $username
28
     */
29
    protected $username;
30
31
    /**
32
     * @var string $action
33
     */
34
    protected $action;
35
36
    /**
37
     * @var string $type
38
     */
39
    protected $type;
40
41
    /**
42
     * @var string $location
43
     */
44
    protected $location;
45
46
    /**
47
     * @var string $data
48
     */
49
    protected $data;
50
51
    /**
52
     * @var \datetime $createdAt
53
     */
54
    protected $createdAt;
55
56
    /**
57
     * constructor
58
     *
59
     * @return self
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
60
     */
61
    public function __construct()
62
    {
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getId()
69
    {
70
        return $this->id;
71
    }
72
73
    /**
74
     * @param mixed $id
75
     */
76
    public function setId($id)
77
    {
78
        $this->id = $id;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getThread()
85
    {
86
        return $this->thread;
87
    }
88
89
    /**
90
     * @param string $thread
91
     */
92
    public function setThread($thread)
93
    {
94
        $this->thread = $thread;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getUsername()
101
    {
102
        return $this->username;
103
    }
104
105
    /**
106
     * @param string $username
107
     */
108
    public function setUsername($username)
109
    {
110
        $this->username = $username;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getAction()
117
    {
118
        return $this->action;
119
    }
120
121
    /**
122
     * @param string $action
123
     */
124
    public function setAction($action)
125
    {
126
        $this->action = $action;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getType()
133
    {
134
        return $this->type;
135
    }
136
137
    /**
138
     * @param string $type
139
     */
140
    public function setType($type)
141
    {
142
        $this->type = $type;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getLocation()
149
    {
150
        return $this->location;
151
    }
152
153
    /**
154
     * @param string $location
155
     */
156
    public function setLocation($location)
157
    {
158
        $this->location = $location;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getData()
165
    {
166
        return $this->data;
167
    }
168
169
    /**
170
     * @param string $data
171
     */
172
    public function setData($data)
173
    {
174
        $this->data = $data;
175
    }
176
177
    /**
178
     * @return \datetime
179
     */
180
    public function getCreatedAt()
181
    {
182
        return $this->createdAt;
183
    }
184
185
    /**
186
     * @param \datetime $createdAt
187
     */
188
    public function setCreatedAt($createdAt)
189
    {
190
        $this->createdAt = $createdAt;
191
    }
192
193
    /**
194
     * return all translatable fields
195
     *
196
     * @return string[]
197
     */
198
    public function getTranslatableFields(){
199
        return [];
200
    }
201
202
    /**
203
     * return all pretranslated fields
204
     *
205
     * @return string[]
206
     */
207
    public function getPreTranslatedFields(){
208
        return [];
209
    }
210
}
211