StreamPreferenceList::self()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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