Month
- Full name:
\Qubus\ValueObjects\DateTime\Month
- Parent class:
\Qubus\ValueObjects\Enum\Enum
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
JANUARY | public | 'January' | |
FEBRUARY | public | 'February' | |
MARCH | public | 'March' | |
APRIL | public | 'April' | |
MAY | public | 'May' | |
JUNE | public | 'June' | |
JULY | public | 'July' | |
AUGUST | public | 'August' | |
SEPTEMBER | public | 'September' | |
OCTOBER | public | 'October' | |
NOVEMBER | public | 'November' | |
DECEMBER | public | 'December' |
Methods
now
Get current Month.
- This method is static.
fromNativeCarbonImmutable
Returns Month from a native PHP \DateTime.
public static fromNativeCarbonImmutable(\Carbon\CarbonImmutable $date): \Qubus\ValueObjects\DateTime\Month
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$date | \Carbon\CarbonImmutable |
getNumericValue
Returns a numeric representation of the Month.
1 for January to 12 for December.
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