Prado\TPropertyValue::ensureNullIfEmpty PHP Метод

ensureNullIfEmpty() публичный статический Метод

Converts the value to 'null' if the given value is empty
public static ensureNullIfEmpty ( $value ) : mixed
Результат mixed input or NULL if input is empty
    public static function ensureNullIfEmpty($value)
    {
        return empty($value) ? null : $value;
    }