Subscriptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A subscriptions() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ExileeD\Inoreader\Objects;
6
7
class Subscriptions extends AbstractObject implements ObjectInterface
8
{
9
10
11
    /**
12
     * @return Subscription[]
13
     */
14 3
    public function subscriptions(): array
15
    {
16
17 3
        $items = [];
18 3
        foreach ($this->data->subscriptions as $subscription) {
19 3
            $items[] = new Subscription($subscription);
20
        }
21
22 3
        return $items;
23
    }
24
}
25