public function setRange(array $properties)
    {
        if (self::isValidSelectRangeType($properties)) {
            $this->range = explode(':', substr($properties['html-type'], 12));
        }

        if (Helpers::isKeyExists($properties, 'range') && is_array($properties['range'])) {
            $this->range = $properties['range'];
        }

        return $this;
    }
public function setRange(array $properties)
    {
        if (self::isValidSelectRangeType($properties)) {
            $this->range = explode(':', substr($properties['html-type'], 12));
        }

        if (Helpers::isKeyExists($properties, 'range') && is_array($properties['range'])) {
            $this->range = $properties['range'];
        }

        return $this;
    }
public function setRange ( array $ properties ) { if ( self :: isValidSelectRangeType ( $ properties ) ) { $ this -> range = explode ( ':' , substr ( $ properties [ 'html-type' ] , 12 ) ) ; } if ( Helpers :: isKeyExists ( $ properties , 'range' ) && is_array ( $ properties [ 'range' ] ) ) { $ this -> range = $ properties [ 'range' ] ; } return $ this ; }
Sets the range for a given field

@param array $properties

@return $this
Sets the range for a given field