HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/payments-gateway/vendor/doctrine/dbal/src/Query/Limit.php
<?php

namespace Doctrine\DBAL\Query;

final class Limit
{
    private ?int $maxResults;
    private int $firstResult;

    public function __construct(?int $maxResults, int $firstResult)
    {
        $this->maxResults  = $maxResults;
        $this->firstResult = $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;
    }
}