ItemIds   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 4
b 0
f 0
dl 0
loc 19
ccs 0
cts 6
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A itemRefs() 0 3 1
A items() 0 3 1
A continuation() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ExileeD\Inoreader\Objects;
6
7
class ItemIds extends AbstractObject implements ObjectInterface
8
{
9
10
    public function items(): array
11
    {
12
        return $this->data->items;
13
    }
14
15
   /**
16
     * @return ItemRef[]
17
     */
18
    public function itemRefs(): array
19
    {
20
        return array_map(fn($item) => new ItemRef($item), $this->data->itemRefs);
21
    }
22
23
    public function continuation(): ?string
24
    {
25
        return $this->data->continuation;
26
    }
27
}
28