Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | trait IntegerTotalResultsTrait { |
||
21 | |||
22 | /** |
||
23 | * Total results. |
||
24 | * |
||
25 | * @var int|null |
||
26 | */ |
||
27 | private $totalResults; |
||
28 | |||
29 | /** |
||
30 | * Get the total results. |
||
31 | * |
||
32 | * @return int|null Returns the total results. |
||
33 | */ |
||
34 | public function getTotalResults(): ?int { |
||
35 | return $this->totalResults; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Set the total results. |
||
40 | * |
||
41 | * @param int|null $totalResults The total result. |
||
42 | * @return self Returns this instance. |
||
43 | */ |
||
44 | public function setTotalResults(?int $totalResults): self { |
||
47 | } |
||
48 | } |
||
49 |