1 | <?php |
||
10 | class SourceMock implements SourceInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | protected $id; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $originalId; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $originalUrl; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | protected $blocked; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $data; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $rawData; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $messages; |
||
46 | |||
47 | /** |
||
48 | * @var \DateTime |
||
49 | */ |
||
50 | protected $datetimeLastVisited; |
||
51 | |||
52 | /** |
||
53 | * @var \DateTime |
||
54 | */ |
||
55 | protected $datetimeCreated; |
||
56 | |||
57 | /** |
||
58 | * @var \DateTime |
||
59 | */ |
||
60 | protected $datetimeModified; |
||
61 | |||
62 | /** |
||
63 | * @var \DateTime |
||
64 | */ |
||
65 | protected $datetimeImported; |
||
66 | |||
67 | /** |
||
68 | * @var OriginInterface |
||
69 | */ |
||
70 | protected $origin; |
||
71 | |||
72 | /** |
||
73 | * @var Feed |
||
74 | */ |
||
75 | protected $feed; |
||
76 | |||
77 | /** |
||
78 | * @var Scraper |
||
79 | */ |
||
80 | protected $scraper; |
||
81 | |||
82 | /** |
||
83 | * @param int $id |
||
84 | */ |
||
85 | 52 | public function __construct($id) |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | 12 | public function getId() |
|
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | */ |
||
101 | public function setOriginalId($originalId) |
||
107 | |||
108 | /** |
||
109 | * @inheritdoc |
||
110 | */ |
||
111 | public function getOriginalId() |
||
115 | |||
116 | /** |
||
117 | * @inheritdoc |
||
118 | */ |
||
119 | public function setOriginalUrl($originalUrl) |
||
125 | |||
126 | /** |
||
127 | * @inheritdoc |
||
128 | */ |
||
129 | public function getOriginalUrl() |
||
133 | |||
134 | /** |
||
135 | * @inheritdoc |
||
136 | */ |
||
137 | 6 | public function setBlocked($blocked) |
|
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | 20 | public function isBlocked() |
|
151 | |||
152 | /** |
||
153 | * @inheritdoc |
||
154 | */ |
||
155 | public function setData($data) |
||
163 | |||
164 | /** |
||
165 | * @inheritdoc |
||
166 | */ |
||
167 | public function getData() |
||
171 | |||
172 | /** |
||
173 | * @inheritdoc |
||
174 | */ |
||
175 | public function setRawData($data) |
||
181 | |||
182 | /** |
||
183 | * @inheritdoc |
||
184 | */ |
||
185 | public function getRawData() |
||
189 | |||
190 | /** |
||
191 | * @inheritdoc |
||
192 | */ |
||
193 | 8 | public function setMessages($messages) |
|
199 | |||
200 | /** |
||
201 | * @inheritdoc |
||
202 | */ |
||
203 | 4 | public function getMessages() |
|
207 | |||
208 | /** |
||
209 | * @inheritdoc |
||
210 | */ |
||
211 | public function setDatetimeLastVisited(\DateTime $datetimeLastVisited) |
||
217 | |||
218 | /** |
||
219 | * @inheritdoc |
||
220 | */ |
||
221 | public function getDatetimeLastVisited() |
||
225 | |||
226 | /** |
||
227 | * @inheritdoc |
||
228 | */ |
||
229 | public function setDatetimeCreated(\DateTime $datetimeCreated) |
||
235 | |||
236 | /** |
||
237 | * @inheritdoc |
||
238 | */ |
||
239 | public function getDatetimeCreated() |
||
243 | |||
244 | /** |
||
245 | * @inheritdoc |
||
246 | */ |
||
247 | public function setDatetimeModified(\DateTime $datetimeModified) |
||
253 | |||
254 | /** |
||
255 | * @inheritdoc |
||
256 | */ |
||
257 | public function getDatetimeModified() |
||
261 | |||
262 | /** |
||
263 | * Set datetimeImported. |
||
264 | * |
||
265 | * @param \DateTime $datetimeImported |
||
266 | * |
||
267 | * @return $this |
||
268 | */ |
||
269 | 6 | public function setDatetimeImported(\DateTime $datetimeImported) |
|
274 | |||
275 | /** |
||
276 | * Get datetimeImported. |
||
277 | * |
||
278 | * @return \DateTime |
||
279 | */ |
||
280 | 4 | public function getDatetimeImported() |
|
284 | |||
285 | /** |
||
286 | * @inheritdoc |
||
287 | */ |
||
288 | public function setFeed(Feed $feed = null) |
||
294 | |||
295 | /** |
||
296 | * @inheritdoc |
||
297 | */ |
||
298 | public function getFeed() |
||
302 | |||
303 | /** |
||
304 | * @inheritdoc |
||
305 | */ |
||
306 | public function setScraper(Scraper $scraper = null) |
||
312 | |||
313 | /** |
||
314 | * @inheritdoc |
||
315 | */ |
||
316 | public function getScraper() |
||
320 | |||
321 | /** |
||
322 | * @inheritdoc |
||
323 | */ |
||
324 | public function getOrigin() |
||
328 | } |
||
329 |