Base::convertValueSingle: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\Base :: convertValueSingle()
//  /dist/bitrix/modules/bizproc/lib/basetype/base.php:177

    
public static function convertValueSingle(FieldType $fieldType$value$toTypeClass)
    {
        
$value = static::toSingleValue($fieldType$value);
        
/** @var Base $toTypeClass */
        
$result = static::convertTo($fieldType$value$toTypeClass);
        if (
$result === null)
            
$result $toTypeClass::convertFrom($fieldType$valueget_called_class());

        if (
$result !== null)
            
$fieldType->setTypeClass($toTypeClass);

        return 
$result !== null$result $value;
    }