The expression return ceil($this->recor...() / $this->pageSize()) returns the type double which is incompatible with the type-hinted return integer|null.
Loading history...
25
}
26
27
/**
28
* Records per page
29
*/
30
public function pageSize(): ?int
31
{
32
return $this->pagination['pageSize'] ?? null;
33
}
34
35
/**
36
* Count of records avaliable in the the
37
*/
38
public function recordCount(): ?int
39
{
40
return $this->pagination['count'] ?? null;
41
}
42
43
/**
44
* Set pagination
45
*/
46
public function setPagination(?int $count = null, ?int $page = null, ?int $pageSize = null): self