ProductInfoResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getResults() 0 4 1
A getTotal() 0 4 1
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