src/PayloadBuilders/ContentTypeValidation.php
function dateRange($min = null, $max = null) {
        $range = [];
        if ($min) $range['min'] = $min;
        if ($max) $range['max'] = $max;
        if (count($range)) $this->data['dateRange'] = $range;
        return $this;
    }
function dateRange($min = null, $max = null) {
        $range = [];
        if ($min) $range['min'] = $min;
        if ($max) $range['max'] = $max;
        if (count($range)) $this->data['dateRange'] = $range;
        return $this;
    }
function dateRange ( $ min = null , $ max = null ) { $ range = [ ] ; if ( $ min ) $ range [ 'min' ] = $ min ; if ( $ max ) $ range [ 'max' ] = $ max ; if ( count ( $ range ) ) $ this -> data [ 'dateRange' ] = $ range ; return $ this ; }
Validates that the value of a field is within a date range. It's defined specifying the min and max values of that range.
@param null $min
@param null $max
@return $this
Validates that the value of a field is within a date range . It s defined specifying the min and max values of that range .