Skip to content

Continent

Constants

Constant Visibility Type Value
AFRICA public 'Africa'
EUROPE public 'Europe'
ASIA public 'Asia'
NORTH_AMERICA public 'North America'
SOUTH_AMERICA public 'South America'
ANTARCTICA public 'Antarctica'
AUSTRALIA public 'Australia'

Inherited methods

fromNative

Returns a new Enum object from passed value matching argument

public static fromNative(): static
  • This method is static.

toNative

Returns the PHP native value of the enum

public toNative(): mixed

equals

Tells whether two Enum objects are sameValueAs by comparing their values

public equals(\Qubus\ValueObjects\Enum\Enum|\Qubus\ValueObjects\ValueObject $enum): bool

Parameters:

Parameter Type Description
$enum \Qubus\ValueObjects\Enum\Enum|\Qubus\ValueObjects\ValueObject

__toString

Returns a native string representation of the Enum value

public __toString(): string

jsonSerialize

public jsonSerialize(): array


Automatically generated on 2025-10-13