Prado\TPropertyValue::ensureNullIfEmpty PHP Method

ensureNullIfEmpty() public static method

Converts the value to 'null' if the given value is empty
public static ensureNullIfEmpty ( $value ) : mixed
return mixed input or NULL if input is empty
    public static function ensureNullIfEmpty($value)
    {
        return empty($value) ? null : $value;
    }