src/Pagination/PaginationManipulator.php
protected static function countArgument(string $argumentName, ?int $defaultCount = null, ?int $maxCount = null): string
    {
        $description = '"Limits number of fetched elements.';
        if ($maxCount) {
            $description .= ' Maximum allowed value: '.$maxCount.'.';
        }
        $description .= "\"\n";

        $definition = $argumentName.': Int'
            .($defaultCount
                ? ' = '.$defaultCount
                : '!'
            );

        return $description.$definition;
    }
protected static function countArgument(string $argumentName, ?int $defaultCount = null, ?int $maxCount = null): string
    {
        $description = '"Limits number of fetched elements.';
        if ($maxCount) {
            $description .= ' Maximum allowed value: '.$maxCount.'.';
        }
        $description .= "\"\n";

        $definition = $argumentName.': Int'
            .($defaultCount
                ? ' = '.$defaultCount
                : '!'
            );

        return $description.$definition;
    }
protected static function countArgument ( string $ argumentName , ? int $ defaultCount = null , ? int $ maxCount = null ) : string { $ description = '"Limits number of fetched elements.' ; if ( $ maxCount ) { $ description .= ' Maximum allowed value: ' . $ maxCount . '.' ; } $ description .= "\"\n" ; $ definition = $ argumentName . ': Int' . ( $ defaultCount ? ' = ' . $ defaultCount : '!' ) ; return $ description . $ definition ; }
Build the count argument definition string, considering default and max values.

@param  string  $argumentName
@param  int|null  $defaultCount
@param  int|null  $maxCount
@return string
Build the count argument definition string considering default and max values .