StreamPreferenceList   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 51
ccs 0
cts 19
cp 0
rs 10
wmc 9

8 Methods

Rating   Name   Duplication   Size   Complexity  
A items() 0 9 2
A description() 0 3 1
A updatedUsec() 0 3 1
A self() 0 3 1
A title() 0 3 1
A id() 0 3 1
A updated() 0 3 1
A direction() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ExileeD\Inoreader\Objects;
6
7
class StreamPreferenceList extends AbstractObject implements ObjectInterface
8
{
9
10
    public function direction(): string
11
    {
12
        return $this->data->direction;
13
    }
14
15
    public function id(): string
16
    {
17
        return $this->data->id;
18
    }
19
20
    public function title(): string
21
    {
22
        return $this->data->title;
23
    }
24
25
    public function description(): string
26
    {
27
        return $this->data->description;
28
    }
29
30
    public function self()
31
    {
32
        return $this->data->self;
33
    }
34
35
    public function updated(): int
36
    {
37
        return $this->data->updated;
38
    }
39
40
    public function updatedUsec(): int
41
    {
42
        return $this->data->updatedUsec;
43
    }
44
45
46
    /**
47
     * @return Item[]
48
     */
49
    public function items(): array
50
    {
51
52
        $items = [];
53
        foreach ($this->data->items as $item) {
54
            $items[] = new Item($item);
55
        }
56
57
        return $items;
58
    }
59
}
60