Prado\TPropertyValue::ensureNullIfEmpty PHP Méthode

ensureNullIfEmpty() public static méthode

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