Release 2.17 (#4836)

see https://github.com/kimai/kimai/pull/4836
This commit is contained in:
Kevin Papst
2024-05-19 17:42:03 +02:00
committed by GitHub
parent 5f7114e008
commit 0c445d1bc4
41 changed files with 318 additions and 307 deletions

View File

@@ -30,7 +30,7 @@ class BaseQuery
/** @var array<string, string|int|null|bool|array<mixed>|DateRange> */
private array $defaults = [
'page' => 1,
'pageSize' => self::DEFAULT_PAGESIZE,
'size' => self::DEFAULT_PAGESIZE,
'orderBy' => 'id',
'order' => self::ORDER_ASC,
'searchTerm' => null,
@@ -137,6 +137,16 @@ class BaseQuery
return $this;
}
public function getSize(): int
{
return $this->getPageSize();
}
public function setSize(?int $size): void
{
$this->setPageSize($size);
}
public function getOrderBy(): string
{
return $this->orderBy;