public function setSpecialType(&$value, $type) {

        $type = strtolower($type);

        if ( empty($value) || !in_array($type, self::$supported_special_types) ) {
            throw new InvalidArgumentException("Invalid value type");
        }

        $this->special_types[$value] = $type;

        return $this;

    }
public function setSpecialType(&$value, $type) {

        $type = strtolower($type);

        if ( empty($value) || !in_array($type, self::$supported_special_types) ) {
            throw new InvalidArgumentException("Invalid value type");
        }

        $this->special_types[$value] = $type;

        return $this;

    }
public function setSpecialType ( & $ value , $ type ) { $ type = strtolower ( $ type ) ; if ( empty ( $ value ) || ! in_array ( $ type , self :: $ supported_special_types ) ) { throw new InvalidArgumentException ( "Invalid value type" ) ; } $ this -> special_types [ $ value ] = $ type ; return $ this ; }
Set values as special type

@param string $value
@param string $type
@return self
@throws InvalidArgumentException
Set values as special type