|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Log entry |
|
4
|
|
|
* |
|
5
|
|
|
* @package CacheCheck\Domain\Model |
|
6
|
|
|
* @author Tim Lochmüller |
|
7
|
|
|
*/ |
|
8
|
|
|
|
|
9
|
|
|
namespace HDNET\CacheCheck\Domain\Model; |
|
10
|
|
|
|
|
11
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* Log entry |
|
15
|
|
|
* |
|
16
|
|
|
* @author Tim Lochmüller |
|
17
|
|
|
* @db |
|
18
|
|
|
* @smartExclude Language,Workspaces |
|
19
|
|
|
*/ |
|
20
|
|
|
class Log extends AbstractEntity |
|
21
|
|
|
{ |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* Time stamp |
|
25
|
|
|
* |
|
26
|
|
|
* @var string |
|
27
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
28
|
|
|
*/ |
|
29
|
|
|
protected $timestamp; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* Request hash |
|
33
|
|
|
* |
|
34
|
|
|
* @var string |
|
35
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $requestHash; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* cache name |
|
41
|
|
|
* |
|
42
|
|
|
* @var string |
|
43
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
44
|
|
|
*/ |
|
45
|
|
|
protected $cacheName; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* called method |
|
49
|
|
|
* |
|
50
|
|
|
* @var string |
|
51
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
52
|
|
|
*/ |
|
53
|
|
|
protected $calledMethod; |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* entry identifier |
|
57
|
|
|
* |
|
58
|
|
|
* @var string |
|
59
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $entryIdentifier; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Entry size |
|
65
|
|
|
* |
|
66
|
|
|
* @var string |
|
67
|
|
|
* @db varchar(255) DEFAULT '' NOT NULL |
|
68
|
|
|
*/ |
|
69
|
|
|
protected $entrySize; |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* get timestamp |
|
73
|
|
|
* |
|
74
|
|
|
* @return string |
|
75
|
|
|
*/ |
|
76
|
|
|
public function getTimestamp() |
|
77
|
|
|
{ |
|
78
|
|
|
return $this->timestamp; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* set timestamp |
|
83
|
|
|
* |
|
84
|
|
|
* @param string $timestamp |
|
85
|
|
|
*/ |
|
86
|
|
|
public function setTimestamp($timestamp) |
|
87
|
|
|
{ |
|
88
|
|
|
$this->timestamp = $timestamp; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* get request hash |
|
93
|
|
|
* |
|
94
|
|
|
* @return string |
|
95
|
|
|
*/ |
|
96
|
|
|
public function getRequestHash() |
|
97
|
|
|
{ |
|
98
|
|
|
return $this->requestHash; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* set request hash |
|
103
|
|
|
* |
|
104
|
|
|
* @param string $requestHash |
|
105
|
|
|
*/ |
|
106
|
|
|
public function setRequestHash($requestHash) |
|
107
|
|
|
{ |
|
108
|
|
|
$this->requestHash = $requestHash; |
|
109
|
|
|
} |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* get cache name |
|
113
|
|
|
* |
|
114
|
|
|
* @return string |
|
115
|
|
|
*/ |
|
116
|
|
|
public function getCacheName() |
|
117
|
|
|
{ |
|
118
|
|
|
return $this->cacheName; |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* set cache name |
|
123
|
|
|
* |
|
124
|
|
|
* @param string $cacheName |
|
125
|
|
|
*/ |
|
126
|
|
|
public function setCacheName($cacheName) |
|
127
|
|
|
{ |
|
128
|
|
|
$this->cacheName = $cacheName; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* get called method |
|
133
|
|
|
* |
|
134
|
|
|
* @return string |
|
135
|
|
|
*/ |
|
136
|
|
|
public function getCalledMethod() |
|
137
|
|
|
{ |
|
138
|
|
|
return $this->calledMethod; |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
/** |
|
142
|
|
|
* set called method |
|
143
|
|
|
* |
|
144
|
|
|
* @param string $calledMethod |
|
145
|
|
|
*/ |
|
146
|
|
|
public function setCalledMethod($calledMethod) |
|
147
|
|
|
{ |
|
148
|
|
|
$this->calledMethod = $calledMethod; |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* get entry identifier |
|
153
|
|
|
* |
|
154
|
|
|
* @return string |
|
155
|
|
|
*/ |
|
156
|
|
|
public function getEntryIdentifier() |
|
157
|
|
|
{ |
|
158
|
|
|
return $this->entryIdentifier; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
/** |
|
162
|
|
|
* set entry identifier |
|
163
|
|
|
* |
|
164
|
|
|
* @param string $entryIdentifier |
|
165
|
|
|
*/ |
|
166
|
|
|
public function setEntryIdentifier($entryIdentifier) |
|
167
|
|
|
{ |
|
168
|
|
|
$this->entryIdentifier = $entryIdentifier; |
|
169
|
|
|
} |
|
170
|
|
|
|
|
171
|
|
|
/** |
|
172
|
|
|
* get entry size |
|
173
|
|
|
* |
|
174
|
|
|
* @return string |
|
175
|
|
|
*/ |
|
176
|
|
|
public function getEntrySize() |
|
177
|
|
|
{ |
|
178
|
|
|
return $this->entrySize; |
|
179
|
|
|
} |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* set entry size |
|
183
|
|
|
* |
|
184
|
|
|
* @param string $entrySize |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setEntrySize($entrySize) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->entrySize = $entrySize; |
|
189
|
|
|
} |
|
190
|
|
|
} |
|
191
|
|
|
|