src/OrderVisitor.php
private function withPagination(bool $newStatus = true): bool
    {
        $oldStatus = $this->withPagination;

        if (func_num_args()) {
            $this->withPagination = $newStatus;
        }

        return $oldStatus;
    }
private function withPagination(bool $newStatus = true): bool
    {
        $oldStatus = $this->withPagination;

        if (func_num_args()) {
            $this->withPagination = $newStatus;
        }

        return $oldStatus;
    }
private function withPagination ( bool $ newStatus = true ) : bool { $ oldStatus = $ this -> withPagination ; if ( func_num_args ( ) ) { $ this -> withPagination = $ newStatus ; } return $ oldStatus ; }
Sets the pagination status for this list.
@param bool $newStatus
@return bool
Sets the pagination status for this list .