forked from aternosorg/php-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchResult.php
More file actions
73 lines (64 loc) · 1.5 KB
/
SearchResult.php
File metadata and controls
73 lines (64 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace Aternos\Model\Search;
use Aternos\Model\ModelCollection;
use Aternos\Model\ModelInterface;
/**
* Class SearchResult
* @template TModel of ModelInterface
* @extends ModelCollection<TModel>
* @package Aternos\Model\Search
*/
class SearchResult extends ModelCollection
{
protected ?int $searchTime = null;
protected ?int $totalCount = null;
protected ?CountRelation $totalCountRelation = null;
/**
* @return int|null
*/
public function getSearchTime(): ?int
{
return $this->searchTime;
}
/**
* @param int|null $searchTime
* @return $this
*/
public function setSearchTime(?int $searchTime): static
{
$this->searchTime = $searchTime;
return $this;
}
/**
* @return int|null
*/
public function getTotalCount(): ?int
{
return $this->totalCount;
}
/**
* @param int|null $totalCount
* @return $this
*/
public function setTotalCount(?int $totalCount): static
{
$this->totalCount = $totalCount;
return $this;
}
/**
* @return CountRelation|null
*/
public function getTotalCountRelation(): ?CountRelation
{
return $this->totalCountRelation;
}
/**
* @param CountRelation|null $totalCountRelation
* @return $this
*/
public function setTotalCountRelation(?CountRelation $totalCountRelation): static
{
$this->totalCountRelation = $totalCountRelation;
return $this;
}
}