Passed
Push — master ( 8b33cc...990c92 )
by Agaletskiy
01:25
created

FacadeDocListV2Response::getTotal()   A

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
    public function __construct(int $total, FacadeDocListV2ItemResponse ...$results)
0 ignored issues
show
Unused Code introduced by
The parameter $total is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
19
    {
20
        $this->results = $results;
21
    }
22
23
    public function getTotal(): int
24
    {
25
        return $this->total;
26
    }
27
28
    /**
29
     * @return FacadeDocListV2ItemResponse[]
30
     */
31
    public function getResults(): array
32
    {
33
        return $this->results;
34
    }
35
}