src/PayloadBuilders/ContentTypeValidation.php
function size($min = null, $max = null) {
        $size = [];
        if ($min) $size['min'] = $min;
        if ($max) $size['max'] = $max;
        if (count($size)) $this->data['size'] = $size;
        return $this;
    }
function size($min = null, $max = null) {
        $size = [];
        if ($min) $size['min'] = $min;
        if ($max) $size['max'] = $max;
        if (count($size)) $this->data['size'] = $size;
        return $this;
    }
function size ( $ min = null , $ max = null ) { $ size = [ ] ; if ( $ min ) $ size [ 'min' ] = $ min ; if ( $ max ) $ size [ 'max' ] = $ max ; if ( count ( $ size ) ) $ this -> data [ 'size' ] = $ size ; return $ this ; }
Validates that the size of a text, object or array is within a range.
@param null $min
@param null $max
@return $this
Validates that the size of a text object or array is within a range .