DistanceUnit
- Full name:
\Qubus\ValueObjects\Geography\DistanceUnit
- Parent class:
\Qubus\ValueObjects\Enum\Enum
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
FOOT | public | 'ft' | |
METER | public | 'mt' | |
KILOMETER | public | 'km' | |
MILE | public | 'mi' |
Inherited methods
fromNative
Returns a new Enum object from passed value matching argument
- This method is static.
toNative
Returns the PHP native value of the enum
equals
Tells whether two Enum objects are sameValueAs by comparing their values
Parameters:
Parameter | Type | Description |
---|---|---|
$enum | \Qubus\ValueObjects\Enum\Enum|\Qubus\ValueObjects\ValueObject |
__toString
Returns a native string representation of the Enum value
jsonSerialize
Automatically generated on 2025-10-13