blob: 32178e8f2560747a018ffcae8d95737b0b314298 (
plain)
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
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Query;
final class Limit
{
public function __construct(
private readonly ?int $maxResults,
private readonly int $firstResult,
) {
}
public function isDefined(): bool
{
return $this->maxResults !== null || $this->firstResult !== 0;
}
public function getMaxResults(): ?int
{
return $this->maxResults;
}
public function getFirstResult(): int
{
return $this->firstResult;
}
}
|