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