Passed
Push — master ( 84e281...f469f1 )
by Kuts
01:36
created

StreamContents::description()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
4
namespace ExileeD\Inoreader\Objects;
5
6
7
class StreamContents 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
54
        foreach ($this->data->items as $item) {
55
            $items[] = new Item($item);
56
        }
57
58
        return $items;
59
    }
60
61
}
62