private function getLimit(?int $limit = null): ?int
    {
        if (is_int($limit) && $limit >= 0) {
            return $limit;
        }

        return null;
    }
private function getLimit(?int $limit = null): ?int
    {
        if (is_int($limit) && $limit >= 0) {
            return $limit;
        }

        return null;
    }
private function getLimit ( ? int $ limit = null ) : ? int { if ( is_int ( $ limit ) && $ limit >= 0 ) { return $ limit ; } return null ; }
Return filtered limit value to use.
Return filtered limit value to use .