\duncan3dc\Dates\TraitsDayHelpers

Check if this instance is a particular day.

Summary

Methods
Properties
Constants
isDay()
isMonday()
isTuesday()
isWednesday()
isThursday()
isFriday()
isSaturday()
isSunday()
isWeekday()
isWeekend()
getPrevious()
getNext()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isDay()

isDay(integer  $day) : boolean

Check if this date is the specified day.

Parameters

integer $day

The ISO-8601 number of the day

Returns

boolean

isMonday()

isMonday() : boolean

Check if this date is a monday.

Returns

boolean

isTuesday()

isTuesday() : boolean

Check if this date is a tuesday.

Returns

boolean

isWednesday()

isWednesday() : boolean

Check if this date is a wednesday.

Returns

boolean

isThursday()

isThursday() : boolean

Check if this date is a thursday.

Returns

boolean

isFriday()

isFriday() : boolean

Check if this date is a friday.

Returns

boolean

isSaturday()

isSaturday() : boolean

Check if this date is a saturday.

Returns

boolean

isSunday()

isSunday() : boolean

Check if this date is a sunday.

Returns

boolean

isWeekday()

isWeekday() : boolean

Check if this date is a weekday.

Returns

boolean

isWeekend()

isWeekend() : boolean

Check if this date is a weekend.

Returns

boolean

getPrevious()

getPrevious(integer  $day) : \duncan3dc\Dates\Traits\Date

Get a date object for the previous occurence of a specified day.

Parameters

integer $day

The numeric representation of the day.

Returns

\duncan3dc\Dates\Traits\Date

getNext()

getNext(integer  $day) : \duncan3dc\Dates\Traits\Date

Get a date object for the next occurence of a specified day.

Parameters

integer $day

The numeric representation of the day.

Returns

\duncan3dc\Dates\Traits\Date