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;
    }