Total Complexity | 10 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 90.48% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Subscription extends AbstractObject implements ObjectInterface |
||
8 | { |
||
9 | |||
10 | 3 | public function id(): string |
|
11 | { |
||
12 | 3 | return $this->data->id; |
|
13 | } |
||
14 | |||
15 | 3 | public function title(): string |
|
16 | { |
||
17 | 3 | return $this->data->title; |
|
18 | } |
||
19 | |||
20 | 3 | public function feedType(): string |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return Category[] |
||
27 | */ |
||
28 | 3 | public function categories(): array |
|
29 | { |
||
30 | 3 | $items = []; |
|
31 | 3 | foreach ($this->data->categories as $category) { |
|
32 | 3 | $items[] = new Category($category); |
|
33 | } |
||
34 | |||
35 | 3 | return $items; |
|
36 | } |
||
37 | |||
38 | 3 | public function sortId(): string |
|
41 | } |
||
42 | |||
43 | 3 | public function firstItemMsec(): int |
|
44 | { |
||
45 | 3 | return $this->data->firstitemmsec; |
|
46 | } |
||
47 | |||
48 | 3 | public function url(): string |
|
49 | { |
||
50 | 3 | return $this->data->url; |
|
51 | } |
||
52 | |||
53 | 3 | public function htmlUrl(): string |
|
56 | } |
||
57 | |||
58 | public function iconUrl(): string |
||
61 | } |
||
62 | } |
||
63 |