FacadeDocListV2Response::getTotal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Lamoda\IsmpClient\V3\Dto;
6
7
final class FacadeDocListV2Response
8
{
9
    /**
10
     * @var int
11
     */
12
    private $total;
13
    /**
14
     * @var FacadeDocListV2ItemResponse[]
15
     */
16
    private $results;
17
18
    /**
19
     * @param int $total
20
     * @param FacadeDocListV2ItemResponse[] $results
21
     */
22
    public function __construct(int $total, array $results = [])
23
    {
24
        $this->total = $total;
25
        $this->results = $results;
26
    }
27
28
    public function getTotal(): int
29
    {
30
        return $this->total;
31
    }
32
33
    /**
34
     * @return FacadeDocListV2ItemResponse[]
35
     */
36
    public function getResults(): array
37
    {
38
        return $this->results;
39
    }
40
}
41