QueryResult::getResult()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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