lib/Collection/Result/Pagerfanta/ResultBuilderAdapter.php
private function setTotalCount(ResultSet $result): void
    {
        $this->totalCount = $result->getTotalCount() - $this->startingOffset;
        $this->totalCount = $this->totalCount > 0 ? $this->totalCount : 0;

        if ($this->maxTotalCount !== null && $this->totalCount >= $this->maxTotalCount) {
            $this->totalCount = $this->maxTotalCount;
        }
    }
private function setTotalCount(ResultSet $result): void
    {
        $this->totalCount = $result->getTotalCount() - $this->startingOffset;
        $this->totalCount = $this->totalCount > 0 ? $this->totalCount : 0;

        if ($this->maxTotalCount !== null && $this->totalCount >= $this->maxTotalCount) {
            $this->totalCount = $this->maxTotalCount;
        }
    }
private function setTotalCount ( ResultSet $ result ) : void { $ this -> totalCount = $ result -> getTotalCount ( ) - $ this -> startingOffset ; $ this -> totalCount = $ this -> totalCount > 0 ? $ this -> totalCount : 0 ; if ( $ this -> maxTotalCount !== null && $ this -> totalCount >= $ this -> maxTotalCount ) { $ this -> totalCount = $ this -> maxTotalCount ; } }
Sets the total count of the results to the adapter, while taking into account
the injected maximum number of pages to use.
Sets the total count of the results to the adapter while taking into account the injected maximum number of pages to use .