Output::getItems()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace Mgid\Component\Pagination;
4
5
final class Output implements OutputInterface
6
{
7
    /**
8
     * @var int
9
     */
10
    private int $count;
11
12
    /**
13
     * @var iterable<array>
14
     */
15
    private iterable $items;
16
17
    /**
18
     * @param int             $count
19
     * @param iterable<array> $items
20
     */
21
    public function __construct(int $count, iterable $items)
22
    {
23
        $this->count = $count;
24
        $this->items = $items;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getCount(): int
31
    {
32
        return $this->count;
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function getItems(): iterable
39
    {
40
        return $this->items;
41
    }
42
}
43