Creates a {@link Value} from the value i.e., a {@link TextValue} for a
value of type {@code string}, {@link BooleanValue} for type {@code bool},
{@link NumberValue} for type {@code float}, or {@code int},
{@link DateTimeValue} for type {@link DfpDateTime}, {@link DateValue} for
type {@link Date}, and {@link SetValue} for type {@code array}. If the
value is a {@code Value}, the value is returned. If the value is
{@code null}, an empty {@link TextValue} is returned.
public static CreateValue ( mixed $value ) : Value | ||
$value | mixed | the value to convert |
리턴 | Value | the constructed value of the appropriate type |