public function setConvertValueFunction(callable $function)
    {
        $validator = $this->getCallableValidatorConvertValue();
        $validator->setCallableFunction($function);

        if ($validator->isValid() === false) {
            throw $validator->getException();
        }

        $this->convertValueFunction = $function;

        return $this;
    }
public function setConvertValueFunction(callable $function)
    {
        $validator = $this->getCallableValidatorConvertValue();
        $validator->setCallableFunction($function);

        if ($validator->isValid() === false) {
            throw $validator->getException();
        }

        $this->convertValueFunction = $function;

        return $this;
    }
public function setConvertValueFunction ( callable $ function ) { $ validator = $ this -> getCallableValidatorConvertValue ( ) ; $ validator -> setCallableFunction ( $ function ) ; if ( $ validator -> isValid ( ) === false ) { throw $ validator -> getException ( ) ; } $ this -> convertValueFunction = $ function ; return $ this ; }
Sets custom "convert value" function.

@param callable $function

@see ConvertValueFunctionValidator

@return static
@throws CallableFunctionValidatorException On invalid callable arguments
Sets custom convert value function .