Total Complexity | 16 |
Total Lines | 81 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class Item extends AbstractObject implements ObjectInterface |
||
8 | { |
||
9 | |||
10 | public function crawlTimeMsec() |
||
11 | { |
||
12 | return $this->data->crawlTimeMsec; |
||
13 | } |
||
14 | |||
15 | public function timestampUsec() |
||
16 | { |
||
17 | return $this->data->timestampUsec; |
||
18 | } |
||
19 | |||
20 | public function categories(): array |
||
21 | { |
||
22 | return $this->data->categories; |
||
23 | } |
||
24 | |||
25 | public function title() |
||
26 | { |
||
27 | return $this->data->title; |
||
28 | } |
||
29 | |||
30 | public function published(): int |
||
31 | { |
||
32 | return $this->data->published; |
||
33 | } |
||
34 | |||
35 | public function updated(): int |
||
36 | { |
||
37 | return $this->data->updated; |
||
38 | } |
||
39 | |||
40 | public function id() |
||
41 | { |
||
42 | return $this->data->id; |
||
43 | } |
||
44 | |||
45 | public function canonical() |
||
46 | { |
||
47 | return $this->data->canonical; |
||
48 | } |
||
49 | |||
50 | public function alternate() |
||
51 | { |
||
52 | return $this->data->alternate; |
||
53 | } |
||
54 | |||
55 | public function summary(): Summary |
||
56 | { |
||
57 | return new Summary($this->data->summary); |
||
58 | } |
||
59 | |||
60 | public function author() |
||
61 | { |
||
62 | return $this->data->author; |
||
63 | } |
||
64 | |||
65 | public function likingUsers(): array |
||
66 | { |
||
67 | return $this->data->id; |
||
68 | } |
||
69 | |||
70 | public function comments(): array |
||
71 | { |
||
72 | return $this->data->comments; |
||
73 | } |
||
74 | |||
75 | public function commentsNum() |
||
76 | { |
||
77 | return $this->data->commentsNum; |
||
78 | } |
||
79 | |||
80 | public function annotations() |
||
83 | } |
||
84 | |||
85 | public function origin() |
||
86 | { |
||
87 | return $this->data->id; |
||
88 | } |
||
89 | |||
90 | |||
91 | } |