PHP Class Yasumi\Provider\Australia

Inheritance: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
Show file Open project: azuyalabs/yasumi Class Usage Examples

Public Properties

Property Type Description
$timezone

Public Methods

Method Description
calculateAnzacDay ( ) ANZAC Day.
calculateAustraliaDay ( ) Australia Day.
calculateChristmasDay ( ) Christmas Day / Boxing Day.
calculateHoliday ( $shortName, array $names = [], $date, boolean $moveFromSaturday = true, boolean $moveFromSunday = true ) Function to simplify moving holidays to mondays if required
calculateLabourDay ( )
calculateNewYearHolidays ( ) Holidays associated with the start of the modern Gregorian calendar.
calculateQueensBirthday ( ) Queens Birthday.
initialize ( ) Initialize holidays for Australia.

Method Details

calculateAnzacDay() public method

Anzac Day is a national day of remembrance in Australia and New Zealand that broadly commemorates all Australians and New Zealanders "who served and died in all wars, conflicts, and peacekeeping operations" Observed on 25 April each year.
public calculateAnzacDay ( )

calculateAustraliaDay() public method

Australia Day is the official National Day of Australia. Celebrated annually on 26 January, it marks the anniversary of the 1788 arrival of the First Fleet of British Ships at Port Jackson, New South Wales, and the raising of the Flag of Great Britain at Sydney Cove by Governor Arthur Phillip. In present-day Australia, celebrations reflect the diverse society and landscape of the nation, and are marked by community and family events, reflections on Australian history, official community awards, and citizenship ceremonies welcoming new immigrants into the Australian community.

calculateChristmasDay() public method

Christmas day, and Boxing day are public holidays in Australia, if they fall on the weekend they are moved to the next available weekday.

calculateHoliday() public method

Function to simplify moving holidays to mondays if required
public calculateHoliday ( $shortName, array $names = [], $date, boolean $moveFromSaturday = true, boolean $moveFromSunday = true )
$shortName
$names array
$date
$moveFromSaturday boolean
$moveFromSunday boolean

calculateLabourDay() public method

public calculateLabourDay ( )

calculateNewYearHolidays() public method

New Year's Day is on January 1 and is the first day of a new year in the Gregorian calendar, which is used in Australia and many other countries. Due to its geographical position close to the International Date Line, Australia is one of the first countries in the world to welcome the New Year.

calculateQueensBirthday() public method

The Queen's Birthday is an Australian public holiday but the date varies across states and territories. Australia celebrates this holiday because it is a constitutional monarchy, with the English monarch as head of state. Her actual birthday is on April 21, but it's celebrated as a public holiday on the second Monday of June. (Except QLD & WA)

initialize() public method

Initialize holidays for Australia.
public initialize ( )

Property Details

$timezone public property

public $timezone