QueryResult   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 32
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTotalRows() 0 3 1
A getResult() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Artprima\QueryFilterBundle\QueryFilter;
4
5
/**
6
 * Class QueryResult
7
 *
8
 * @author Denis Voytyuk <[email protected]>
9
 */
10
class QueryResult
11
{
12
    /**
13
     * @var array
14
     */
15
    private $result;
16
17
    /**
18
     * @var int
19
     */
20
    private $totalRows;
21
22 3
    public function __construct(array $result, int $totalRows)
23
    {
24 3
        $this->result = $result;
25 3
        $this->totalRows = $totalRows;
26 3
    }
27
28
    /**
29
     * @return array
30
     */
31 3
    public function getResult(): array
32
    {
33 3
        return $this->result;
34
    }
35
36
    /**
37
     * @return int
38
     */
39 3
    public function getTotalRows(): int
40
    {
41 3
        return $this->totalRows;
42
    }
43
}
44