ProductInfoResponse::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
c 0
b 0
f 0
rs 10
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 ProductInfoResponse
8
{
9
    /**
10
     * @var array
11
     */
12
    private $results;
13
    /**
14
     * @var int
15
     */
16
    private $total;
17
18
    public function __construct(array $results, int $total)
19
    {
20
        $this->results = $results;
21
        $this->total = $total;
22
    }
23
24
    public function getResults(): array
25
    {
26
        return $this->results;
27
    }
28
29
    public function getTotal(): int
30
    {
31
        return $this->total;
32
    }
33
}
34