Completed
Push — master ( cc516e...32adf9 )
by Philip
20:39
created

PaginatedResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Dontdrinkandroot\Pagination;
4
5
/**
6
 * @author Philip Washington Sorst <[email protected]>
7
 */
8
class PaginatedResult
9
{
10
    private Pagination $pagination;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
11
12
    private array $results;
13
14
    public function __construct(Pagination $pagination, array $results)
15
    {
16
        $this->pagination = $pagination;
17
        $this->results = $results;
18
    }
19
20
    public function getPagination(): Pagination
21
    {
22
        return $this->pagination;
23
    }
24
25
    public function getResults(): array
26
    {
27
        return $this->results;
28
    }
29
}
30