WeekDay
: int
in package
Table of Contents
Cases
Methods
- fromName() : self
- fromNumber() : self
- int() : int|null
- locale() : CarbonImmutable
- next() : CarbonImmutable
Cases
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Methods
fromName()
public
static fromName(string $name[, string|null $locale = null ]) : self
Parameters
- $name : string
- $locale : string|null = null
Return values
selffromNumber()
public
static fromNumber(int $number) : self
Parameters
- $number : int
Return values
selfint()
public
static int(self|int|null $value) : int|null
Parameters
- $value : self|int|null
Return values
int|nulllocale()
public
locale(string $locale[, CarbonImmutable|null $now = null ]) : CarbonImmutable
Parameters
- $locale : string
- $now : CarbonImmutable|null = null
Return values
CarbonImmutablenext()
public
next([CarbonImmutable|null $now = null ]) : CarbonImmutable
Parameters
- $now : CarbonImmutable|null = null