PHP Class Yasumi\Provider\UnitedKingdom

Inheritance: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
Mostrar archivo Open project: azuyalabs/yasumi

Public Methods

Method Description
calculateChristmasHolidays ( ) Christmas Day is celebrated in the United Kingdom on December 25. It traditionally celebrates Jesus Christ's birth but many aspects of this holiday have pagan origins. Christmas is a time for many people to give and receive gifts and prepare special festive meals.
calculateNewYearsDay ( ) New Year's Day is a public holiday in the United Kingdom on January 1 each year. It marks the start of the New Year in the Gregorian calendar. For many people have a quiet day on January 1, which marks the end of the Christmas break before they return to work.
initialize ( ) Initialize holidays for the United Kingdom.

Private Methods

Method Description
calculateMayDayBankHoliday ( ) The first Monday of May is a bank holiday in the United Kingdom. It is called May Day in England, Wales and Northern Ireland. It is known as the Early May Bank Holiday in Scotland. It probably originated as a Roman festival honoring the beginning of the summer season (in the northern hemisphere). In more recent times, it has been as a day to campaign for and celebrate workers' rights.
calculateSpringBankHoliday ( ) The spring bank holiday, also known as the late May bank holiday, is a time for people in the United Kingdom to have a day off work or school. It falls on the last Monday of May but it used to be on the Monday after Pentecost.

Method Details

calculateChristmasHolidays() public method

Boxing Day in the United Kingdom is the day after Christmas Day and falls on December 26. Traditionally, it was a day when employers distributed money, food, cloth (material) or other valuable goods to their employees. In modern times, it is an important day for sporting events and the start of the post-Christmas sales. Boxing Day is a bank holiday. If Boxing Day falls on a Saturday, the following Monday is a bank holiday. If Christmas Day falls on a Saturday, the following Monday and Tuesday are bank holidays. All schools and many organizations are closed in this period. Some may close for the whole week between Christmas and New Year.

calculateNewYearsDay() public method

If New Years Day falls on a Saturday or Sunday, it is observed the next Monday (January 2nd or 3rd) Before 1871 it was not an observed or statutory holiday, after 1871 only an observed holiday. Since 1974 (by Royal Proclamation) it was established as a bank holiday.

initialize() public method

Initialize holidays for the United Kingdom.
public initialize ( )