├── vendor ├── autoload.php ├── composer │ ├── autoload_namespaces.php │ ├── autoload_psr4.php │ ├── platform_check.php │ ├── installed.php │ └── autoload_real.php └── azuyalabs │ └── yasumi │ └── src │ └── Yasumi │ ├── data │ └── translations │ │ ├── anzacDay.php │ │ ├── waitangiDay.php │ │ ├── australiaDay.php │ │ ├── canadaDay.php │ │ ├── familyDay.php │ │ ├── heritageDay.php │ │ ├── islanderDay.php │ │ ├── portugalDay.php │ │ ├── secondNewYearsDay.php │ │ ├── terryFoxDay.php │ │ ├── thanksgivingDay.php │ │ ├── victoriaDay.php │ │ ├── civicHoliday.php │ │ ├── discoveryDay.php │ │ ├── louisRielDay.php │ │ ├── natalHoliday.php │ │ ├── reformationDay.php │ │ ├── stAndrewsDay.php │ │ ├── stDavidsDay.php │ │ ├── stRupertsDay.php │ │ ├── carnationRevolutionDay.php │ │ ├── dayOfLiberation.php │ │ ├── orangemensDay.php │ │ ├── remembranceDay.php │ │ ├── saskatchewanDay.php │ │ ├── stFloriansDay.php │ │ ├── stLeopoldsDay.php │ │ ├── walpurgisEve.php │ │ ├── worldAnimalDay.php │ │ ├── plebisciteDay.php │ │ ├── dayOfReformation.php │ │ ├── goldCupParadeDay.php │ │ ├── winterTime.php │ │ ├── allSoulsDay.php │ │ ├── yukonHeritageDay.php │ │ ├── stJohnsEve.php │ │ ├── stMartinsDay.php │ │ ├── annunciation.php │ │ ├── epiphanyEve.php │ │ ├── nationalPatriotsDay.php │ │ ├── allSaintsEve.php │ │ ├── saintJeanBaptisteDay.php │ │ ├── restorationOfIndepence.php │ │ ├── summerTime.php │ │ ├── novaScotiaHeritageDay.php │ │ ├── dayAfterNewYearsDay.php │ │ ├── stGeorgesDay.php │ │ ├── nationalIndigenousPeoplesDay.php │ │ ├── portugueseRepublicDay.php │ │ ├── victoryInEuropeDay.php │ │ ├── armisticeDay.php │ │ ├── newYearsEve.php │ │ ├── stJosephsDay.php │ │ ├── maundyThursday.php │ │ ├── labourDay.php │ │ ├── substituteHoliday.php │ │ ├── internationalWomensDay.php │ │ ├── queensBirthday.php │ │ ├── corpusChristi.php │ │ ├── ashWednesday.php │ │ ├── fathersDay.php │ │ ├── mothersDay.php │ │ ├── stStephensDay.php │ │ ├── immaculateConception.php │ │ ├── stJohnsDay.php │ │ ├── ascensionDay.php │ │ ├── valentinesDay.php │ │ ├── pentecostMonday.php │ │ ├── christmasEve.php │ │ ├── epiphany.php │ │ ├── pentecost.php │ │ ├── assumptionOfMary.php │ │ ├── allSaintsDay.php │ │ ├── easter.php │ │ ├── goodFriday.php │ │ ├── easterMonday.php │ │ ├── secondChristmasDay.php │ │ ├── christmasDay.php │ │ ├── newYearsDay.php │ │ └── internationalWorkersDay.php │ ├── Exception │ ├── Exception.php │ ├── UnknownLocaleException.php │ ├── InvalidYearException.php │ ├── ProviderNotFoundException.php │ ├── MissingTranslationException.php │ └── InvalidDateException.php │ ├── ProviderInterface.php │ ├── Provider │ ├── DateTimeZoneFactory.php │ ├── UnitedKingdom │ │ ├── Wales.php │ │ └── England.php │ ├── Austria │ │ ├── Vienna.php │ │ ├── LowerAustria.php │ │ ├── Styria.php │ │ ├── Tyrol.php │ │ ├── Burgenland.php │ │ ├── Vorarlberg.php │ │ ├── Carinthia.php │ │ ├── Salzburg.php │ │ └── UpperAustria.php │ ├── Canada │ │ ├── Nunavut.php │ │ ├── Ontario.php │ │ ├── NewBrunswick.php │ │ ├── BritishColumbia.php │ │ ├── NorthwestTerritories.php │ │ ├── Alberta.php │ │ └── Saskatchewan.php │ ├── Switzerland │ │ ├── Aargau.php │ │ ├── Solothurn.php │ │ ├── Fribourg.php │ │ ├── Vaud.php │ │ ├── Grisons.php │ │ ├── Bern.php │ │ ├── AppenzellAusserrhoden.php │ │ ├── StGallen.php │ │ ├── Valais.php │ │ ├── BaselStadt.php │ │ ├── BaselLandschaft.php │ │ ├── Thurgau.php │ │ ├── Zurich.php │ │ └── Schaffhausen.php │ ├── Germany │ │ ├── RhinelandPalatinate.php │ │ ├── Hesse.php │ │ ├── BadenWurttemberg.php │ │ ├── Bavaria.php │ │ ├── Saarland.php │ │ ├── NorthRhineWestphalia.php │ │ ├── SchleswigHolstein.php │ │ ├── Bremen.php │ │ ├── Thuringia.php │ │ ├── MecklenburgWesternPomerania.php │ │ ├── SaxonyAnhalt.php │ │ ├── LowerSaxony.php │ │ ├── Brandenburg.php │ │ └── Hamburg.php │ ├── France │ │ ├── BasRhin.php │ │ ├── HautRhin.php │ │ └── Moselle.php │ ├── Australia │ │ └── Tasmania │ │ │ ├── CentralNorth.php │ │ │ ├── Northwest │ │ │ └── CircularHead.php │ │ │ ├── South.php │ │ │ ├── Northwest.php │ │ │ ├── KingIsland.php │ │ │ ├── Northeast.php │ │ │ ├── FlindersIsland.php │ │ │ └── South │ │ │ └── Southeast.php │ └── Spain │ │ ├── Melilla.php │ │ ├── Navarre.php │ │ └── Aragon.php │ ├── TranslationsInterface.php │ └── Filters │ ├── BankHolidaysFilter.php │ ├── SeasonalHolidaysFilter.php │ ├── ObservedHolidaysFilter.php │ ├── OfficialHolidaysFilter.php │ ├── OtherHolidaysFilter.php │ ├── AbstractFilter.php │ ├── OnFilter.php │ └── BetweenFilter.php ├── composer.json ├── .editorconfig ├── .gitignore └── index.php /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/azuyalabs/yasumi/src/Yasumi'), 10 | 'Kirby\\' => array($vendorDir . '/getkirby/composer-installer/src'), 11 | ); 12 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hashandsalt/kirby3-yasumi", 3 | "description": "Kirby 3 - Yasumi", 4 | "type": "kirby-plugin", 5 | "license": "MIT", 6 | "authors": [{ 7 | "name": "James Steel", 8 | "email": "hello@hashandsalt.com" 9 | }], 10 | 11 | "require": { 12 | "getkirby/composer-installer": "^1.1", 13 | "azuyalabs/yasumi": "^2.3" 14 | }, 15 | "config": { 16 | "optimize-autoloader": true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.php] 13 | indent_size = 4 14 | 15 | [*.md,*.txt] 16 | trim_trailing_whitespace = false 17 | insert_final_newline = false 18 | 19 | [composer.json] 20 | indent_size = 4 21 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/anzacDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for ANZAC Day 15 | return [ 16 | 'en' => 'ANZAC Day', 17 | ]; 18 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/waitangiDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Waitangi Day 15 | return [ 16 | 'en' => 'Waitangi Day', 17 | ]; 18 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/australiaDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Australia Day 15 | return [ 16 | 'en' => 'Australia Day', 17 | ]; 18 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | /** 16 | * Interface Exception. 17 | */ 18 | interface Exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/canadaDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Canada Day 15 | return [ 16 | 'en' => 'Canada Day', 17 | 'fr' => 'Fête du Canada', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/familyDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Family Day 15 | return [ 16 | 'en' => 'Family Day', 17 | 'fr' => 'Fête de la famille', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/heritageDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Heritage Day 15 | return [ 16 | 'en' => 'Heritage Day', 17 | 'fr' => 'Fête du patrimoine', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/islanderDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Islander Day 15 | return [ 16 | 'en' => 'Islander Day', 17 | 'fr' => 'Fête des Insulaires', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/portugalDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Portugal Day 15 | return [ 16 | 'en' => 'Portugal Day', 17 | 'pt' => 'Dia de Portugal', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/secondNewYearsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for New Year's Day 15 | return [ 16 | 'da' => '2. nytårsdag', 17 | 'en' => '2nd January', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/terryFoxDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Terry Fox Day 15 | return [ 16 | 'en' => 'Terry Fox Day', 17 | 'fr' => 'Journée Terry Fox', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/thanksgivingDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Thanksgiving 15 | return [ 16 | 'en' => 'Thanksgiving', 17 | 'fr' => 'Action de grâce', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/victoriaDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Victoria Day 15 | return [ 16 | 'en' => 'Victoria Day', 17 | 'fr' => 'Fête de la Reine', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/civicHoliday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Civic Holiday 15 | return [ 16 | 'en' => 'Civic Holiday', 17 | 'fr' => 'Premier lundi d’août', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/discoveryDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Discovery Day 15 | return [ 16 | 'en' => 'Discovery Day', 17 | 'fr' => 'Journée découverte', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/louisRielDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Louis Riel Day 15 | return [ 16 | 'en' => 'Louis Riel Day', 17 | 'fr' => 'Journée Louis Riel', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/natalHoliday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Natal Holiday 15 | return [ 16 | 'en' => 'Natal Holiday', 17 | 'fr' => 'Jour de la Fondation', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/reformationDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Reformation Day 15 | return [ 16 | 'de' => 'Reformationstag', 17 | 'en' => 'Reformation Day', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stAndrewsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. Andrew's Day 15 | return [ 16 | 'en' => 'St. Andrew’s Day', 17 | 'ro' => 'Sfântul Andrei', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stDavidsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. David's Day 15 | return [ 16 | 'cy' => 'Dydd Gŵyl Dewi', 17 | 'en' => 'St. David’s Day', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stRupertsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Saint Rupert's Day. 15 | return [ 16 | 'en' => 'Saint Rupert’s Day', 17 | 'de_AT' => 'Rupert', 18 | ]; 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | composer.lock 3 | 4 | # files of Composer dependencies that are not needed for the plugin 5 | /vendor/**/.* 6 | /vendor/**/*.json 7 | /vendor/**/*.txt 8 | /vendor/**/*.md 9 | /vendor/**/*.yml 10 | /vendor/**/*.yaml 11 | /vendor/**/*.xml 12 | /vendor/**/*.dist 13 | /vendor/**/readme.php 14 | /vendor/**/LICENSE 15 | /vendor/**/COPYING 16 | /vendor/**/VERSION 17 | /vendor/**/docs/* 18 | /vendor/**/example/* 19 | /vendor/**/examples/* 20 | /vendor/**/test/* 21 | /vendor/**/tests/* 22 | /vendor/**/php4/* 23 | /vendor/getkirby/composer-installer 24 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/carnationRevolutionDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Freedom Day 15 | return [ 16 | 'en' => 'Freedom Day', 17 | 'pt' => 'Dia da Liberdade', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/dayOfLiberation.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | // Translations for Day of Liberation 14 | return [ 15 | 'de' => 'Tag der Befreiung', 16 | 'en' => 'Day of Liberation', 17 | ]; 18 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/orangemensDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Orangemen's Day 15 | return [ 16 | 'en' => 'Orangemen’s Day', 17 | 'fr' => 'Fête des orangistes', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/remembranceDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Remembrance Day 15 | return [ 16 | 'en' => 'Remembrance Day', 17 | 'fr' => 'Jour du souvenir', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/saskatchewanDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Saskatchewan Day 15 | return [ 16 | 'en' => 'Saskatchewan Day', 17 | 'fr' => 'Jour Saskatchewan', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stFloriansDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Saint Florian's Day. 15 | return [ 16 | 'en' => 'Saint Florian’s Day', 17 | 'de_AT' => 'Florian', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stLeopoldsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Saint Leopold's Day. 15 | return [ 16 | 'en' => 'Saint Leopold’s Day', 17 | 'de_AT' => 'Leopold', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/walpurgisEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Walpurgis Night 15 | return [ 16 | 'en' => 'Walpurgis Night', 17 | 'sv' => 'valborgsmässoafton', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/worldAnimalDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for World Animal Day 15 | return [ 16 | 'en' => 'World Animal Day', 17 | 'nl' => 'Werelddierendag', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/plebisciteDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Plebiscite Day. 15 | return [ 16 | 'en' => 'Plebiscite Day', 17 | 'de_AT' => 'Tag der Volksabstimmung', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/dayOfReformation.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Day of Reformation 15 | return [ 16 | 'de' => 'Tag der Reformation', 17 | 'en' => 'Day of Reformation', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/goldCupParadeDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Gold Cup Parade Day 15 | return [ 16 | 'en' => 'Gold Cup Parade Day', 17 | 'fr' => 'Défilé de la Coupe d’or', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/winterTime.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Wintertime 15 | return [ 16 | 'da' => 'sommertid slutter', 17 | 'en' => 'Wintertime', 18 | 'nl' => 'wintertijd', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/allSoulsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for All Souls' Day 15 | return [ 16 | 'en' => 'All Souls’ Day', 17 | 'lt' => 'Vėlinės', 18 | 'pt' => 'Dia de Finados', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/yukonHeritageDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Yukon Heritage Day 15 | return [ 16 | 'en' => 'Yukon Heritage Day', 17 | 'fr' => 'Journée du patrimoine du Yukon', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stJohnsEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. John's Eve 15 | return [ 16 | 'da' => 'sankthansaften', 17 | 'en' => 'St. John’s Eve', 18 | 'sv' => 'midsommarafton', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stMartinsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. Martin's Day 15 | return [ 16 | 'en' => 'St. Martin’s Day', 17 | 'nl' => 'Sint Maarten', 18 | 'de_AT' => 'Martin', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/annunciation.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Annunciation 15 | return [ 16 | 'el' => 'Ευαγγελισμός της Θεοτόκου', 17 | 'en' => 'Annunciation', 18 | 'fr' => 'Annonciation', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/epiphanyEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Epiphany Eve 15 | return [ 16 | 'da' => 'helligtrekongersaften', 17 | 'en' => 'Epiphany Eve', 18 | 'sv' => 'trettondagsafton', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/nationalPatriotsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for National Patriot's Day 15 | return [ 16 | 'en' => 'National Patriot’s Day', 17 | 'fr' => 'Journée nationale des patriotes', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/allSaintsEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for All Saints' Eve 15 | return [ 16 | 'da' => 'allehelgensaften', 17 | 'en' => 'All Saints’ Eve', 18 | 'sv' => 'alla helgons afton', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/saintJeanBaptisteDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Saint-Jean Baptiste Day 15 | return [ 16 | 'en' => 'Saint-Jean-Baptiste Day', 17 | 'fr' => 'Fête de la Saint-Jean-Baptiste', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/restorationOfIndepence.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Restoration of Independence 15 | return [ 16 | 'en' => 'Restoration of Independence', 17 | 'pt' => 'Restauração da Independência', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/summerTime.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Summertime 15 | return [ 16 | 'da' => 'sommertid starter', 17 | 'en' => 'Summertime', 18 | 'ko' => '서머타임', 19 | 'nl' => 'zomertijd', 20 | ]; 21 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/novaScotiaHeritageDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Nova Scotia Heritage Day 15 | return [ 16 | 'en' => 'Nova Scotia Heritage Day', 17 | 'fr' => 'Journée du patrimoine de la Nouvelle-Écosse', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/dayAfterNewYearsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Day after New Year's Day 15 | return [ 16 | 'en' => 'Day after New Year’s Day', 17 | 'ko' => '새해 연휴', 18 | 'ro' => 'A doua zi după Anul Nou', 19 | ]; 20 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stGeorgesDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. George's Day 15 | return [ 16 | 'ca' => 'Sant Jordi', 17 | 'el' => 'Αγίου Γεωργίου', 18 | 'en' => 'St. George’s Day', 19 | 'es' => 'San Jorge', 20 | ]; 21 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/nationalIndigenousPeoplesDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for National Indigenous Peoples Day 15 | return [ 16 | 'en' => 'National Indigenous Peoples Day', 17 | 'fr' => 'Journée nationale des peuples autochtones', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/portugueseRepublicDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Implantation of the Portuguese Republic 15 | return [ 16 | 'en' => 'Implantation of the Portuguese Republic', 17 | 'pt' => 'Implantação da República Portuguesa', 18 | ]; 19 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/victoryInEuropeDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Victory in Europe Day 15 | return [ 16 | 'cs' => 'Den vítězství', 17 | 'en' => 'Victory in Europe Day', 18 | 'fr' => 'Victoire 1945', 19 | 'sk' => 'Deň víťazstva nad fašizmom', 20 | ]; 21 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/UnknownLocaleException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | use InvalidArgumentException; 16 | 17 | /** 18 | * Class UnknownLocaleException. 19 | */ 20 | class UnknownLocaleException extends InvalidArgumentException implements Exception 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/armisticeDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Armistice Day 15 | return [ 16 | 'el' => 'Ημέρα Ανακωχής', 17 | 'en' => 'Armistice Day', 18 | 'fr' => 'Armistice', 19 | 'fr_FR' => 'Armistice 1918', 20 | 'nl' => 'Wapenstilstand', 21 | ]; 22 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/newYearsEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for New Year's Eve 15 | return [ 16 | 'da' => 'nytårsaften', 17 | 'de' => 'Silvester', 18 | 'en' => 'New Year’s Eve', 19 | 'ko' => '신년전야', 20 | 'lv' => 'Vecgada vakars', 21 | 'sv' => 'nyårsafton', 22 | ]; 23 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stJosephsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. Joseph's Day 15 | return [ 16 | 'ca' => 'Sant Josep', 17 | 'de' => 'Josephstag', 18 | 'en' => 'St. Joseph’s Day', 19 | 'es' => 'San José', 20 | 'fr' => 'Saint-Joseph', 21 | 'it' => 'San Giuseppe', 22 | ]; 23 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/maundyThursday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Maundy Thursday 15 | return [ 16 | 'ca' => 'dijous Sant', 17 | 'da' => 'skærtorsdag', 18 | 'el' => 'Μεγάλη Πέμπτη', 19 | 'en' => 'Maundy Thursday', 20 | 'es' => 'Jueves Santo', 21 | 'nb' => 'skjærtorsdag', 22 | ]; 23 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/labourDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Labour Day 15 | return [ 16 | 'en' => 'Labour Day', 17 | 'en_US' => 'Labor Day', 18 | 'ja' => '労働の日', 19 | 'ko' => '노동절', 20 | 'nl' => 'Dag van de arbeid', 21 | 'sk' => 'Sviatok práce', 22 | 'fr' => 'Fête du travail', 23 | ]; 24 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/substituteHoliday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translation pattern for substitute holidays. 15 | return [ 16 | 'da' => '{0} (erstatning)', 17 | 'en' => '{0} (substitute day)', 18 | 'en_US' => '{0} observed', 19 | 'en_CA' => '{0} observed', 20 | 'ja' => '振替休日 ({0})', 21 | 'ko' => '대체공휴일', 22 | ]; 23 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/InvalidYearException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | use InvalidArgumentException; 16 | 17 | /** 18 | * Class InvalidYearException. 19 | * 20 | * @author Quentin Neyrat 21 | */ 22 | class InvalidYearException extends InvalidArgumentException implements Exception 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/internationalWomensDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for International Women's Day 15 | return [ 16 | 'de' => 'Internationaler Frauentag', 17 | 'en' => 'International Women’s Day', 18 | 'ko' => '국제 여성의 날', 19 | 'ru' => 'Международный женский день', 20 | 'uk' => 'Міжнародний жіночий день', 21 | ]; 22 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/queensBirthday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Queen's Birthday 15 | return [ 16 | 'da' => 'Dronningens fødselsdag', 17 | 'en' => 'Queen’s Birthday', 18 | 'pt' => 'Aniversário da Rainha', 19 | 'fr' => 'Anniversaire officiel de la reine', 20 | 'ru' => 'Официальный день рождения королевы', 21 | ]; 22 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/ProviderNotFoundException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | use InvalidArgumentException; 16 | 17 | /** 18 | * Class ProviderNotFoundException. 19 | * 20 | * @author Quentin Neyrat 21 | */ 22 | class ProviderNotFoundException extends InvalidArgumentException implements Exception 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/corpusChristi.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Corpus Christi 15 | return [ 16 | 'de' => 'Fronleichnam', 17 | 'en' => 'Corpus Christi', 18 | 'fr' => 'Fête-Dieu', 19 | 'hr' => 'Tijelovo', 20 | 'it' => 'Corpus Domini', 21 | 'pl' => 'Boże Ciało', 22 | 'pt' => 'Corpus Christi', 23 | 'pt_PT' => 'Corpo de Deus', 24 | ]; 25 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/ashWednesday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Ash Wednesday 15 | return [ 16 | 'de' => 'Aschermittwoch', 17 | 'en' => 'Ash Wednesday', 18 | 'es' => 'Miércoles de Ceniza', 19 | 'fr' => 'Mercredi des Cendres', 20 | 'it' => 'Mercoledi delle Ceneri', 21 | 'nl' => 'Aswoensdag', 22 | 'pt' => 'Quarta-feira de Cinzas', 23 | ]; 24 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/fathersDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Father's Day 15 | return [ 16 | 'de' => 'Vatertag', 17 | 'el' => 'Γιορτή του πατέρα', 18 | 'en' => 'Father’s Day', 19 | 'fr' => 'Fête des pères', 20 | 'it' => 'Festa del papà', 21 | 'nl' => 'Vaderdag', 22 | 'pt' => 'Dia do Pai', 23 | 'ro' => 'Ziua Tatălui', 24 | 'sk' => 'Deň otcov', 25 | ]; 26 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/mothersDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Mother's Day 15 | return [ 16 | 'de' => 'Muttertag', 17 | 'el' => 'Ημέρα της μητέρας', 18 | 'en' => 'Mother’s Day', 19 | 'fr' => 'Fête des mères', 20 | 'it' => 'Festa della mamma', 21 | 'nl' => 'Moederdag', 22 | 'pt' => 'Dia da Mãe', 23 | 'ro' => 'Ziua Mamei', 24 | 'sk' => 'Deň matiek', 25 | ]; 26 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stStephensDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. Stephen's Day 15 | return [ 16 | 'ca' => 'Sant Esteve', 17 | 'cy' => 'Gŵyl San Steffan', 18 | 'de' => 'Stephanstag', 19 | 'en' => 'St. Stephen’s Day', 20 | 'es' => 'Sant Esteve', 21 | 'fr' => 'Saint-Étienne', 22 | 'ga' => 'Lá Fhéile Stiofáin', 23 | 'hr' => 'Sveti Stjepan', 24 | 'it' => 'Santo Stefano', 25 | ]; 26 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/ProviderInterface.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi; 14 | 15 | /** 16 | * Interface ProviderInterface - Holiday provider interface. 17 | * 18 | * This interface class defines the standard functions that any country provider needs to define. 19 | * 20 | * @see AbstractProvider 21 | */ 22 | interface ProviderInterface 23 | { 24 | /** 25 | * Initialize country holidays. 26 | */ 27 | public function initialize(): void; 28 | } 29 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/immaculateConception.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Immaculate Conception 15 | return [ 16 | 'ca' => 'Immaculada Concepció', 17 | 'de' => 'Mariä Empfängnis', 18 | 'el' => 'Ευαγγελισμός της Θεοτόκου', 19 | 'en' => 'Immaculate Conception', 20 | 'es' => 'Inmaculada Concepción', 21 | 'fr' => 'Immaculée Conception', 22 | 'it' => 'Immacolata Concezione', 23 | 'pt' => 'Dia da Imaculada Conceição', 24 | ]; 25 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/stJohnsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for St. John's Day 15 | return [ 16 | 'ca' => 'Sant Joan', 17 | 'da' => 'sankthansaften', 18 | 'el' => 'Σύναξις Προφήτου Προδρόμου και Βαπτιστού Ιωάννου', 19 | 'en' => 'St. John’s Day', 20 | 'es' => 'Sant Joan', 21 | 'et' => 'Jaanipäev', 22 | 'fi' => 'Juhannuspäivä', 23 | 'lt' => 'Rasos ir Joninių diena', 24 | 'lv' => 'Jāņi', 25 | 'sv' => 'midsommardagen', 26 | ]; 27 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/ascensionDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Ascension Day 15 | return [ 16 | 'da' => 'Kristi himmelfartsdag', 17 | 'de' => 'Christi Himmelfahrt', 18 | 'de_CH' => 'Auffahrt', 19 | 'el' => 'Ανάληψη του Χριστού', 20 | 'en' => 'Ascension Day', 21 | 'fi' => 'Helatorstai', 22 | 'fr' => 'Ascension', 23 | 'it' => 'Ascensione', 24 | 'nb' => 'Kristi himmelfartsdag', 25 | 'nl' => 'Hemelvaart', 26 | 'sv' => 'Kristi himmelsfärdsdag', 27 | ]; 28 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/valentinesDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Valentine's Day 15 | return [ 16 | 'ca' => 'Dia de Sant Valentí', 17 | 'de' => 'Valentinstag', 18 | 'el' => 'Αγίου Βαλεντίνου', 19 | 'en' => 'Valentine’s Day', 20 | 'es' => 'San Valentín', 21 | 'fr' => 'Saint-Valentin', 22 | 'it' => 'San Valentino', 23 | 'ja' => 'バレンタイン·デー', 24 | 'ko' => '발렌타인 데이', 25 | 'nl' => 'Valentijnsdag', 26 | 'pl' => 'Walentynki', 27 | 'pt' => 'Dia dos Namorados', 28 | ]; 29 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/pentecostMonday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Whitmonday 15 | return [ 16 | 'da' => '2. pinsedag', 17 | 'de' => 'Pfingstmontag', 18 | 'el' => 'Αγίου Πνεύματος', 19 | 'en' => 'Whitmonday', 20 | 'fr' => 'Lundi de Pentecôte', 21 | 'ga' => 'Luan Cincíse', 22 | 'hu' => 'Pünkösdhétfő', 23 | 'it' => 'Lunedi di Pentecoste', 24 | 'nb' => 'andre pinsedag', 25 | 'nl' => 'tweede pinksterdag', 26 | 'nl_BE' => 'pinkstermaandag', 27 | 'ro' => 'A doua zi de Rusalii', 28 | ]; 29 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/christmasEve.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Christmas Eve 15 | return [ 16 | 'cs' => 'Štědrý den', 17 | 'cy' => 'Noswyl Nadolig', 18 | 'da' => 'juleaften', 19 | 'de' => 'Heiliger Abend', 20 | 'en' => 'Christmas Eve', 21 | 'et' => 'Jõululaupäev', 22 | 'fr' => 'Réveillon de Noël', 23 | 'it' => 'Vigilia di Natale', 24 | 'ko' => '크리스마스 이브', 25 | 'lt' => 'Šv. Kūčios', 26 | 'lv' => 'Ziemassvētku vakars', 27 | 'pt' => 'Véspera de Natal', 28 | 'ro' => 'Ajunul Crãciunului', 29 | 'sk' => 'Štedrý deň', 30 | 'sv' => 'julafton', 31 | ]; 32 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/epiphany.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Epiphany 15 | return [ 16 | 'ca' => 'Epifania', 17 | 'de_AT' => 'Heilige Drei Könige', 18 | 'de_CH' => 'Heilige Drei Könige', 19 | 'de' => 'Heilige 3 Könige', 20 | 'el' => 'Θεοφάνεια', 21 | 'en' => 'Epiphany', 22 | 'es' => 'Día de Reyes', 23 | 'fi' => 'Loppiainen', 24 | 'fr' => 'Epiphanie', 25 | 'hr' => 'Sveta tri kralja', 26 | 'it' => 'Epifania', 27 | 'ja' => 'エピファニー', 28 | 'nl' => 'Drie Koningen', 29 | 'pl' => 'Święto Trzech Króli', 30 | 'sk' => 'Zjavenie Pána / Traja králi', 31 | 'sv' => 'trettondedag jul', 32 | ]; 33 | -------------------------------------------------------------------------------- /vendor/composer/platform_check.php: -------------------------------------------------------------------------------- 1 | = 70200)) { 8 | $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.'; 9 | } 10 | 11 | if ($issues) { 12 | if (!headers_sent()) { 13 | header('HTTP/1.1 500 Internal Server Error'); 14 | } 15 | if (!ini_get('display_errors')) { 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 17 | fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); 18 | } elseif (!headers_sent()) { 19 | echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; 20 | } 21 | } 22 | trigger_error( 23 | 'Composer detected issues in your platform: ' . implode(' ', $issues), 24 | E_USER_ERROR 25 | ); 26 | } 27 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/MissingTranslationException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | use Exception as BaseException; 16 | 17 | /** 18 | * Class MissingTranslationException. 19 | */ 20 | class MissingTranslationException extends BaseException implements Exception 21 | { 22 | /** 23 | * Initializes the Exception instance 24 | * 25 | * @param string $key The holiday key 26 | * @param array $locales The locales that was searched 27 | */ 28 | public function __construct(string $key, array $locales) 29 | { 30 | parent::__construct(\sprintf("Translation for '%s' not found for any locale: '%s'", $key, \implode("', '", $locales))); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/pentecost.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Whitsunday 15 | return [ 16 | 'da' => 'pinsedag', 17 | 'de' => 'Pfingstsonntag', 18 | 'de_AT' => 'Pfingsten', 19 | 'de_CH' => 'Pfingsten', 20 | 'el' => 'Πεντηκοστή', 21 | 'en' => 'Whitsunday', 22 | 'et' => 'Nelipühade 1. püha', 23 | 'fi' => 'Helluntaipäivä', 24 | 'fr' => 'Pentecôte', 25 | 'ga' => 'Domhnach Cincíse', 26 | 'hu' => 'Pünkösd', 27 | 'it' => 'Pentecoste', 28 | 'nb' => 'første pinsedag', 29 | 'nl' => 'eerste pinksterdag', 30 | 'pl' => 'Zielone Świątki', 31 | 'ro' => 'Rusaliile', 32 | 'ru' => 'Троица', 33 | 'sv' => 'pingstdagen', 34 | 'uk' => 'Трійця', 35 | ]; 36 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/DateTimeZoneFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider; 14 | 15 | /** 16 | * This factory keep references to already instantiated DateTimeZone to save CPU time resources 17 | * 18 | * @author Pierrick VIGNAND 19 | */ 20 | final class DateTimeZoneFactory 21 | { 22 | /** @var array */ 23 | private static $dateTimeZones; 24 | 25 | public static function getDateTimeZone(string $timezone): \DateTimeZone 26 | { 27 | if (!isset(self::$dateTimeZones[$timezone])) { 28 | self::$dateTimeZones[$timezone] = new \DateTimeZone($timezone); 29 | } 30 | 31 | return self::$dateTimeZones[$timezone]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/assumptionOfMary.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Assumption of Mary 15 | return [ 16 | 'ca' => 'l’Assumpció', 17 | 'de' => 'Mariä Himmelfahrt', 18 | 'el' => 'Κοίμηση της Θεοτόκου', 19 | 'en' => 'Assumption of Mary', 20 | 'es' => 'Asunción de la Virgen María', 21 | 'fr' => 'Assomption', 22 | 'hr' => 'Velika Gospa', 23 | 'it' => 'Assunzione di Maria Vergine', 24 | 'it_CH' => 'Assunzione', 25 | 'lt' => 'Žolinė (Švč. Mergelės Marijos ėmimo į dangų diena)', 26 | 'nl' => 'Onze Lieve Vrouw hemelvaart', 27 | 'pl' => 'Wniebowzięcie Najświętszej Marii Panny', 28 | 'pt' => 'Assunção de Nossa Senhora', 29 | 'ro' => 'Adormirea Maicii Domnului', 30 | 'sk' => 'Nanebovzatie Panny Márie', 31 | ]; 32 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/TranslationsInterface.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi; 14 | 15 | /** 16 | * Interface TranslationsInterface. 17 | */ 18 | interface TranslationsInterface 19 | { 20 | /** 21 | * Returns translation for holiday in specific locale. 22 | * 23 | * @param string $key holiday key 24 | * @param string $locale locale 25 | * 26 | * @return string|null translated holiday name 27 | */ 28 | public function getTranslation(string $key, string $locale): ?string; 29 | 30 | /** 31 | * Returns all available translations for holiday. 32 | * 33 | * @param string $key holiday key 34 | * 35 | * @return array holiday name translations ['' => '', ...] 36 | */ 37 | public function getTranslations(string $key): array; 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/UnitedKingdom/Wales.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\UnitedKingdom; 14 | 15 | use Yasumi\Provider\UnitedKingdom; 16 | 17 | /** 18 | * Provider for all holidays in Wales (United Kingdom). 19 | * 20 | * Wales is a country that is part of the United Kingdom. It covers an area of 20,779 square kilometres 21 | * (8,023 sq mi), and has a population of 3,125,000. Cardiff, Wales's capital and largest city, is the 22 | * eleventh largest city in the United Kingdom. 23 | * 24 | * @link https://en.wikipedia.org/wiki/Wales 25 | */ 26 | class Wales extends UnitedKingdom 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'GB-WLS'; 33 | } 34 | -------------------------------------------------------------------------------- /vendor/composer/installed.php: -------------------------------------------------------------------------------- 1 | 3 | array ( 4 | 'pretty_version' => 'dev-master', 5 | 'version' => 'dev-master', 6 | 'aliases' => 7 | array ( 8 | ), 9 | 'reference' => '659a6c64ebcfb8d5593d014ee596ced6389d0f9c', 10 | 'name' => 'hashandsalt/kirby3-yasumi', 11 | ), 12 | 'versions' => 13 | array ( 14 | 'azuyalabs/yasumi' => 15 | array ( 16 | 'pretty_version' => '2.3.0', 17 | 'version' => '2.3.0.0', 18 | 'aliases' => 19 | array ( 20 | ), 21 | 'reference' => 'e2f37e6de3b15642b83275a24bbfe101cd5c7791', 22 | ), 23 | 'getkirby/composer-installer' => 24 | array ( 25 | 'pretty_version' => '1.2.1', 26 | 'version' => '1.2.1.0', 27 | 'aliases' => 28 | array ( 29 | ), 30 | 'reference' => 'c98ece30bfba45be7ce457e1102d1b169d922f3d', 31 | ), 32 | 'hashandsalt/kirby3-yasumi' => 33 | array ( 34 | 'pretty_version' => 'dev-master', 35 | 'version' => 'dev-master', 36 | 'aliases' => 37 | array ( 38 | ), 39 | 'reference' => '659a6c64ebcfb8d5593d014ee596ced6389d0f9c', 40 | ), 41 | ), 42 | ); 43 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/UnitedKingdom/England.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\UnitedKingdom; 14 | 15 | use Yasumi\Provider\UnitedKingdom; 16 | 17 | /** 18 | * Provider for all holidays in England (United Kingdom). 19 | * 20 | * England is a country that is part of the United Kingdom. It covers an area of 130,279 square kilometres 21 | * (50,301 sq mi), and has a population of 5,619,400. London, England's capital, is also the capital of 22 | * and the largest city in the United Kingdom. 23 | * 24 | * @link https://en.wikipedia.org/wiki/England 25 | */ 26 | class England extends UnitedKingdom 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'GB-ENG'; 33 | } 34 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/allSaintsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for All Saints' Day 15 | return [ 16 | 'ca' => 'Dia de Tots Sants', 17 | 'de' => 'Allerheiligen', 18 | 'el' => 'Άγιοι Πάντες', 19 | 'en' => 'All Saints’ Day', 20 | 'es' => 'Día de todos los Santos', 21 | 'fi' => 'Pyhäinpäivä', 22 | 'fr_BE' => 'La Toussaint', 23 | 'fr' => 'Toussaint', 24 | 'hr' => 'Dan svih svetih', 25 | 'hu' => 'Mindenszentek', 26 | 'it' => 'Festa di Tutti i Santi', 27 | 'it_CH' => 'Ognissanti', 28 | 'lt' => 'Visų šventųjų diena (Vėlinės)', 29 | 'nl' => 'Allerheiligen', 30 | 'pl' => 'Uroczystość Wszystkich Świętych', 31 | 'pt' => 'Dia de todos os Santos', 32 | 'ro' => 'Ziua tuturor sfinților', 33 | 'sk' => 'Sviatok Všetkých svätých', 34 | 'sv' => 'alla helgons dag', 35 | ]; 36 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/BankHolidaysFilter.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Filters; 14 | 15 | use Yasumi\Holiday; 16 | 17 | /** 18 | * BankHolidaysFilter is a class for filtering all bank holidays. 19 | * 20 | * BankHolidaysFilter is a class that returns all holidays that are considered bank holidays of any given holiday 21 | * provider. 22 | * 23 | * Example usage: 24 | * $holidays = Yasumi::create('Netherlands', 2015); 25 | * $bank = new BankHolidaysFilter($holidays->getIterator()); 26 | */ 27 | class BankHolidaysFilter extends AbstractFilter 28 | { 29 | /** 30 | * Checks whether the current element of the iterator is an observed holiday. 31 | * 32 | * @return bool 33 | */ 34 | public function accept(): bool 35 | { 36 | return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_BANK; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/easter.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Easter Sunday 15 | return [ 16 | 'bs_Latn' => 'Uskrs', 17 | 'ca' => 'Pasqua', 18 | 'cy' => 'Sul y Pasg', 19 | 'da' => 'påskedag', 20 | 'de' => 'Ostersonntag', 21 | 'de_CH' => 'Ostern', 22 | 'el' => 'Κυριακή του Πάσχα', 23 | 'en' => 'Easter Sunday', 24 | 'et' => 'Ülestõusmispühade 1. püha', 25 | 'fi' => 'Pääsiäispäivä', 26 | 'fr' => 'Pâques', 27 | 'ga' => 'Domhnach Cásca', 28 | 'hr' => 'Uskrs', 29 | 'hu' => 'Húsvét', 30 | 'it' => 'Pasqua', 31 | 'lt' => 'Velykos', 32 | 'lv' => 'Lieldienas', 33 | 'nb' => 'første påskedag', 34 | 'nl' => 'eerste paasdag', 35 | 'pl' => 'Wielkanoc', 36 | 'pt' => 'Páscoa', 37 | 'ro' => 'Paștele', 38 | 'ru' => 'Пасха', 39 | 'sv' => 'påskdagen', 40 | 'uk' => 'Великдень', 41 | ]; 42 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/SeasonalHolidaysFilter.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Filters; 14 | 15 | use Yasumi\Holiday; 16 | 17 | /** 18 | * SeasonalHolidaysFilter is a class for filtering all seasonal holidays. 19 | * 20 | * OfficialHolidaysFilter is a class that returns all holidays that are considered seasonal of any given holiday 21 | * provider. 22 | * 23 | * Example usage: 24 | * $holidays = Yasumi::create('Netherlands', 2015); 25 | * $seasonal = new SeasonalHolidaysFilter($holidays->getIterator()); 26 | */ 27 | class SeasonalHolidaysFilter extends AbstractFilter 28 | { 29 | /** 30 | * Checks whether the current element of the iterator is a seasonal holiday. 31 | * 32 | * @return bool 33 | */ 34 | public function accept(): bool 35 | { 36 | return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_SEASON; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/goodFriday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Good Friday 15 | return [ 16 | 'ca' => 'Divendres Sant', 17 | 'cs' => 'Velký pátek', 18 | 'cy' => 'Gwener y Groglith', 19 | 'da' => 'langfredag', 20 | 'de' => 'Karfreitag', 21 | 'el' => 'Μεγάλη Παρασκευή', 22 | 'en' => 'Good Friday', 23 | 'es' => 'Viernes Santo', 24 | 'et' => 'Suur Reede', 25 | 'fi' => 'Pitkäperjantai', 26 | 'fr' => 'Vendredi Saint', 27 | 'ga' => 'Aoine an Chéasta', 28 | 'hu' => 'Nagypéntek', 29 | 'it' => 'Venerdi Santo', 30 | 'ja' => 'グッドフライデー', 31 | 'lv' => 'Lielā Piektdiena', 32 | 'nb' => 'langfredag', 33 | 'nl' => 'Goede Vrijdag', 34 | 'pl' => 'Wielki Piątek', 35 | 'pt' => 'Sexta feira santa', 36 | 'pt_PT' => 'Sexta-feira Santa', 37 | 'sk' => 'Veľký piatok', 38 | 'sv' => 'långfredagen', 39 | ]; 40 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/ObservedHolidaysFilter.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Filters; 14 | 15 | use Yasumi\Holiday; 16 | 17 | /** 18 | * ObservedHolidaysFilter is a class for filtering all observed holidays. 19 | * 20 | * ObservedHolidaysFilter is a class that returns all holidays that are considered observed of any given holiday 21 | * provider. 22 | * 23 | * Example usage: 24 | * $holidays = Yasumi::create('Netherlands', 2015); 25 | * $observed = new ObservedHolidaysFilter($holidays->getIterator()); 26 | */ 27 | class ObservedHolidaysFilter extends AbstractFilter 28 | { 29 | /** 30 | * Checks whether the current element of the iterator is an observed holiday. 31 | * 32 | * @return bool 33 | */ 34 | public function accept(): bool 35 | { 36 | return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OBSERVANCE; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/OfficialHolidaysFilter.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Filters; 14 | 15 | use Yasumi\Holiday; 16 | 17 | /** 18 | * OfficialHolidaysFilter is a class for filtering all official holidays. 19 | * 20 | * OfficialHolidaysFilter is a class that returns all holidays that are considered official of any given 21 | * holiday provider. 22 | * 23 | * Example usage: 24 | * $holidays = Yasumi::create('Netherlands', 2015); 25 | * $official = new OfficialHolidaysFilter($holidays->getIterator()); 26 | */ 27 | class OfficialHolidaysFilter extends AbstractFilter 28 | { 29 | /** 30 | * Checks whether the current element of the iterator is an official holiday. 31 | * 32 | * @return bool 33 | */ 34 | public function accept(): bool 35 | { 36 | return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OFFICIAL; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/OtherHolidaysFilter.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Filters; 14 | 15 | use Yasumi\Holiday; 16 | 17 | /** 18 | * OtherHolidaysFilter is a class for filtering all other type of holidays. 19 | * 20 | * OtherHolidaysFilter is a class that returns all holidays that are considered an other type of holiday of any given 21 | * holiday provider. 22 | * 23 | * Example usage: 24 | * $holidays = Yasumi::create('Netherlands', 2015); 25 | * $other = new OtherHolidaysFilter($holidays->getIterator()); 26 | */ 27 | class OtherHolidaysFilter extends AbstractFilter 28 | { 29 | /** 30 | * Checks whether the current element of the iterator is an other type of holiday. 31 | * 32 | * @return bool 33 | */ 34 | public function accept(): bool 35 | { 36 | return $this->getInnerIterator()->current()->getType() === Holiday::TYPE_OTHER; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/easterMonday.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Easter Monday 15 | return [ 16 | 'ca' => 'dilluns de Pasqua', 17 | 'cs' => 'Velikonoční pondělí', 18 | 'cy' => 'Llun y Pasg', 19 | 'da' => '2. påskedag', 20 | 'de' => 'Ostermontag', 21 | 'el' => 'Δευτέρα του Πάσχα', 22 | 'en' => 'Easter Monday', 23 | 'es' => 'Lunes de Pascua', 24 | 'fi' => '2. pääsiäispäivä', 25 | 'fr' => 'Lundi de Pâques', 26 | 'ga' => 'Luan Cásca', 27 | 'hr' => 'Uskršnji ponedjeljak', 28 | 'hu' => 'Húsvéthétfő', 29 | 'it' => 'Lunedì dell’Angelo', 30 | 'it_CH' => 'Lunedi di Pasqua', 31 | 'lt' => 'Antroji Velykų diena', 32 | 'lv' => 'Otrās Lieldienas', 33 | 'nb' => 'andre påskedag', 34 | 'nl_BE' => 'paasmaandag', 35 | 'nl' => 'tweede paasdag', 36 | 'pl' => 'Poniedziałek Wielkanocny', 37 | 'ro' => 'A doua zi de Paște', 38 | 'sk' => 'Veľkonočný pondelok', 39 | 'sv' => 'annandag påsk', 40 | ]; 41 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/secondChristmasDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Second Christmas Day 15 | return [ 16 | 'cs' => '2. svátek vánoční', 17 | 'da' => '2. juledag', 18 | 'de' => '2. Weihnachtsfeiertag', 19 | 'de_AT' => 'Stefanitag', 20 | 'el' => 'Σύναξις Υπεραγίας Θεοτόκου Μαρίας', 21 | 'en' => 'Boxing Day', 22 | 'en_US' => 'Second Christmas Day', 23 | 'en_ZA' => 'Day of Goodwill', 24 | 'et' => 'Teine Jõulupüha', 25 | 'fi' => '2. joulupäivä', 26 | 'fr' => 'Saint-Étienne', 27 | 'fr_CA' => 'Lendemain de Noël', 28 | 'fr_LU' => 'Deuxième jour de Noël', 29 | 'hu' => 'Karácsony másnapja', 30 | 'ko' => '성탄절 연휴', 31 | 'lt' => 'Kalėdos (antra diena)', 32 | 'lv' => 'Otrie Ziemassvētki', 33 | 'nb' => 'andre juledag', 34 | 'nl' => 'tweede kerstdag', 35 | 'pl' => 'drugi dzień Bożego Narodzenia', 36 | 'ro' => 'A doua zi de Crăciun', 37 | 'sk' => 'Druhý sviatok vianočný', 38 | 'sv' => 'annandag jul', 39 | ]; 40 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | [ 8 | 'holidays' => function ($country, $year, $locale = 'en_US') { 9 | $holidays = Yasumi\Yasumi::create($country, $year, $locale); 10 | return $holidays; 11 | } 12 | ], 13 | 14 | 'collections' => [ 15 | 'holidays' => function ($site) { 16 | $country = option('hashandsalt.yasumi.country', 'UnitedKingdom'); 17 | $year = option('hashandsalt.yasumi.year', date('Y')); 18 | $locale = option('hashandsalt.yasumi.locale', 'en_GB'); 19 | 20 | foreach ($site->holidays($country, $year, $locale) as $holiday) { 21 | $date = new DateTime($holiday); 22 | 23 | $pages[] = [ 24 | 'slug' => $holiday->shortName, 25 | 'num' => $date->format('Ymd'), 26 | 'template' => 'yasumi', 27 | 'content' => [ 28 | 'title' => $holiday->getName(), 29 | 'date' => $date->format('Y-m-d'), 30 | 'type' => $holiday->getType() 31 | ] 32 | ]; 33 | } 34 | 35 | return Pages::factory($pages); 36 | } 37 | ] 38 | 39 | ]); 40 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/AbstractFilter.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | namespace Yasumi\Filters; 15 | 16 | use Countable; 17 | use FilterIterator; 18 | use Yasumi\SubstituteHoliday; 19 | 20 | /** 21 | * AbstractFilter. 22 | * 23 | * @package Yasumi\Filters 24 | */ 25 | abstract class AbstractFilter extends FilterIterator implements Countable 26 | { 27 | /** 28 | * Returns the number of holidays returned by this iterator. 29 | * 30 | * In case a holiday is substituted (e.g. observed), the holiday is only counted once. 31 | * 32 | * @return int Number of unique holidays. 33 | */ 34 | public function count(): int 35 | { 36 | $names = \array_map(static function ($holiday) { 37 | if ($holiday instanceof SubstituteHoliday) { 38 | return $holiday->getSubstitutedHoliday()->getKey(); 39 | } 40 | 41 | return $holiday->getKey(); 42 | }, \iterator_to_array($this)); 43 | 44 | return \count(\array_unique($names)); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Vienna.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Vienna (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Vienna 23 | */ 24 | class Vienna extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-9'; 31 | 32 | /** 33 | * Initialize holidays for Vienna (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom holidays. 45 | $this->calculateStLeopoldsDay(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/LowerAustria.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Lower Austria (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Lower_Austria 23 | */ 24 | class LowerAustria extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-3'; 31 | 32 | /** 33 | * Initialize holidays for Lower Austria (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom holidays. 45 | $this->calculateStLeopoldsDay(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/christmasDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for Christmas 15 | return [ 16 | 'bs_Latn' => 'Božić', 17 | 'ca' => 'Nadal', 18 | 'cs' => '1. svátek vánoční', 19 | 'cy' => 'Nadolig', 20 | 'da' => 'juledag', 21 | 'de' => '1. Weihnachtsfeiertag', 22 | 'de_AT' => 'Christtag', 23 | 'de_CH' => 'Weihnachtstag', 24 | 'el' => 'Χριστούγεννα', 25 | 'en' => 'Christmas Day', 26 | 'en_US' => 'Christmas', 27 | 'es' => 'Navidad', 28 | 'et' => 'Esimene jõulupüha', 29 | 'fi' => 'Joulupäivä', 30 | 'fr' => 'Noël', 31 | 'hr' => 'Božić', 32 | 'hu' => 'Karácsony', 33 | 'it' => 'Natale', 34 | 'ko' => '기독탄신일', 35 | 'lt' => 'Šv. Kalėdos', 36 | 'lv' => 'Ziemassvētki', 37 | 'nb' => 'første juledag', 38 | 'nl' => 'eerste kerstdag', 39 | 'nl_BE' => 'Kerstmis', 40 | 'pl' => 'pierwszy dzień Bożego Narodzenia', 41 | 'pt' => 'Natal', 42 | 'ro' => 'Crăciunul', 43 | 'ru' => 'Рождество', 44 | 'sk' => 'Prvý sviatok vianočný', 45 | 'sv' => 'juldagen', 46 | 'uk' => 'Різдво', 47 | ]; 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/newYearsDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for New Year's Day 15 | return [ 16 | 'bs_Latn' => 'Nova godina', 17 | 'ca' => 'Cap d’any', 18 | 'cs' => 'Nový rok', 19 | 'cy' => 'Dydd Calan', 20 | 'da' => 'nytårsdag', 21 | 'de' => 'Neujahr', 22 | 'el' => 'Πρωτοχρονιά', 23 | 'en' => 'New Year’s Day', 24 | 'es' => 'Año Nuevo', 25 | 'et' => 'Uusaasta', 26 | 'fi' => 'Uudenvuodenpäivä', 27 | 'fr_BE' => 'Nouvel An', 28 | 'fr_CH' => 'Nouvel An', 29 | 'fr' => 'Jour de l’An', 30 | 'ga' => 'Lá Caille', 31 | 'hr' => 'Nova godina', 32 | 'hu' => 'Újév', 33 | 'it' => 'Capodanno', 34 | 'ja' => '元日', 35 | 'ko' => '새해', 36 | 'lt' => 'Naujųjų metų diena', 37 | 'lv' => 'Jaunais Gads', 38 | 'nb' => 'første nyttårsdag', 39 | 'nl' => 'Nieuwjaar', 40 | 'pl' => 'Nowy Rok', 41 | 'pt' => 'Ano novo', 42 | 'pt_PT' => 'Dia de Ano Novo', 43 | 'ro' => 'Anul Nou', 44 | 'ru' => 'Новый год', 45 | 'sk' => 'Nový rok', 46 | 'sv' => 'nyårsdagen', 47 | 'uk' => 'Новий Рік', 48 | ]; 49 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Styria.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Styria (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Styria 23 | */ 24 | class Styria extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-6'; 31 | 32 | /** 33 | * Initialize holidays for Styria (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom Common holidays. 45 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Tyrol.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Tyrol (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Tyrol_(state) 23 | */ 24 | class Tyrol extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-7'; 31 | 32 | /** 33 | * Initialize holidays for Tyrol (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom Common holidays. 45 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Burgenland.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Burgenland (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Burgenland 23 | */ 24 | class Burgenland extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-1'; 31 | 32 | /** 33 | * Initialize holidays for Burgenland (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom Common holidays. 45 | $this->addHoliday($this->stMartinsDay($this->year, $this->timezone, $this->locale)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Vorarlberg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Austria; 18 | 19 | /** 20 | * Provider for all holidays in Vorarlberg (Austria). 21 | * 22 | * @link https://en.wikipedia.org/wiki/Vorarlberg 23 | */ 24 | class Vorarlberg extends Austria 25 | { 26 | /** 27 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 28 | * country or sub-region. 29 | */ 30 | public const ID = 'AT-8'; 31 | 32 | /** 33 | * Initialize holidays for Vorarlberg (Austria). 34 | * 35 | * @throws InvalidDateException 36 | * @throws \InvalidArgumentException 37 | * @throws UnknownLocaleException 38 | * @throws \Exception 39 | */ 40 | public function initialize(): void 41 | { 42 | parent::initialize(); 43 | 44 | // Add custom Common holidays. 45 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/Nunavut.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Canada; 19 | 20 | /** 21 | * Provider for all holidays in Nunavut (Canada). 22 | * 23 | * Nunavut is a territory of Canada. 24 | * 25 | * @link https://en.wikipedia.org/wiki/Nunavut 26 | */ 27 | class Nunavut extends Canada 28 | { 29 | /** 30 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 31 | * country or sub-region. 32 | */ 33 | public const ID = 'CA-NU'; 34 | 35 | /** 36 | * Initialize holidays for Nunavut (Canada). 37 | * 38 | * @throws InvalidDateException 39 | * @throws \InvalidArgumentException 40 | * @throws UnknownLocaleException 41 | * @throws \Exception 42 | */ 43 | public function initialize(): void 44 | { 45 | parent::initialize(); 46 | 47 | $this->timezone = 'America/Iqaluit'; 48 | 49 | $this->calculateCivicHoliday(); 50 | $this->calculateVictoriaDay(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/Ontario.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Canada; 18 | 19 | /** 20 | * Provider for all holidays in Ontario (Canada). 21 | * 22 | * Ontario is a province of Canada. 23 | * 24 | * @link https://en.wikipedia.org/wiki/Ontario 25 | */ 26 | class Ontario extends Canada 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'CA-ON'; 33 | 34 | /** 35 | * Initialize holidays for Ontario (Canada). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->timezone = 'America/Toronto'; 47 | 48 | $this->calculateCivicHoliday(); 49 | $this->calculateFamilyDay(); 50 | $this->calculateVictoriaDay(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/NewBrunswick.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Canada; 18 | 19 | /** 20 | * Provider for all holidays in New Brunswick (Canada). 21 | * 22 | * New Brunswick is a province of Canada. 23 | * 24 | * @link https://en.wikipedia.org/wiki/New_Brunswick 25 | */ 26 | class NewBrunswick extends Canada 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'CA-NB'; 33 | 34 | /** 35 | * Initialize holidays for New Brunswick (Canada). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->timezone = 'America/Halifax'; 47 | 48 | $this->calculateCivicHoliday(); 49 | $this->calculateFamilyDay(); 50 | $this->calculateVictoriaDay(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/BritishColumbia.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Canada; 18 | 19 | /** 20 | * Provider for all holidays in British Columbia (Canada). 21 | * 22 | * British Columbia is a province of Canada. 23 | * 24 | * @link https://en.wikipedia.org/wiki/British_Columbia 25 | */ 26 | class BritishColumbia extends Canada 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'CA-BC'; 33 | 34 | /** 35 | * Initialize holidays for British Columbia (Canada). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->timezone = 'America/Vancouver'; 47 | 48 | $this->calculateCivicHoliday(); 49 | $this->calculateFamilyDay(); 50 | $this->calculateVictoriaDay(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/data/translations/internationalWorkersDay.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | // Translations for International Workers' Day 15 | return [ 16 | 'bs_Latn' => 'Praznik rada', 17 | 'ca' => 'Dia del Treball', 18 | 'cs' => 'Svátek práce', 19 | 'da' => 'første maj', 20 | 'de' => 'Tag der Arbeit', 21 | 'de_AT' => 'Staatsfeiertag', 22 | 'el' => 'Εργατική Πρωτομαγιά', 23 | 'en_US' => 'International Workers’ Day', 24 | 'en_ZA' => 'Workers’ Day', 25 | 'es' => 'Día del Trabajador', 26 | 'et' => 'Kevadpüha', 27 | 'fi' => 'Vappu', 28 | 'fr' => 'Fête du Travail', 29 | 'hr' => 'Praznik rada', 30 | 'hu' => 'A munka ünnepe', 31 | 'it' => 'Festa del Lavoro', 32 | 'it_CH' => 'Festa dei lavoratori', 33 | 'ja' => '労働の日', 34 | 'ko' => '노동절', 35 | 'lt' => 'Tarptautinė darbo diena', 36 | 'lv' => 'Darba svētki', 37 | 'nb' => 'arbeidernes dag', 38 | 'nl' => 'Dag van de arbeid', 39 | 'pl' => 'Święto Pracy', 40 | 'pt' => 'Dia internacional do trabalhador', 41 | 'pt_PT' => 'Dia do Trabalhador', 42 | 'ro' => 'Ziua internațională a muncii', 43 | 'ru' => 'День международной солидарности трудящихся', 44 | 'sk' => 'Sviatok práce', 45 | 'sv' => 'första maj', 46 | 'uk' => 'День міжнародної солідарності трудящих', 47 | ]; 48 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/NorthwestTerritories.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Canada; 18 | 19 | /** 20 | * Provider for all holidays in Northwest Territories (Canada). 21 | * 22 | * Northwest Territories is a territory of Canada. 23 | * 24 | * @link https://en.wikipedia.org/wiki/Northwest_Territories 25 | */ 26 | class NorthwestTerritories extends Canada 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'CA-NT'; 33 | 34 | /** 35 | * Initialize holidays for Northwest Territories (Canada). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->timezone = 'America/Yellowknife'; 47 | 48 | $this->calculateCivicHoliday(); 49 | $this->calculateNationalIndigenousPeoplesDay(); 50 | $this->calculateVictoriaDay(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Exception/InvalidDateException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Exception; 14 | 15 | use InvalidArgumentException; 16 | 17 | /** 18 | * Class InvalidDateException. 19 | */ 20 | class InvalidDateException extends InvalidArgumentException implements Exception 21 | { 22 | 23 | /** 24 | * Initializes the Exception instance 25 | * 26 | * @param mixed $argumentValue The value of the invalid argument 27 | */ 28 | public function __construct($argumentValue) 29 | { 30 | $type = \gettype($argumentValue); 31 | switch ($type) { 32 | case 'boolean': 33 | $displayName = $argumentValue ? 'true' : 'false'; 34 | break; 35 | case 'integer': 36 | case 'double': 37 | $displayName = (string) $argumentValue; 38 | break; 39 | case 'string': 40 | $displayName = $argumentValue; 41 | break; 42 | case 'object': 43 | $displayName = \get_class($argumentValue); 44 | break; 45 | default: 46 | $displayName = $type; 47 | break; 48 | } 49 | 50 | parent::__construct(\sprintf(\sprintf('\'%s\' is not a valid DateTime(Immutable) instance', $displayName))); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/OnFilter.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | namespace Yasumi\Filters; 15 | 16 | use Iterator; 17 | 18 | /** 19 | * OnFilter is a class used for filtering holidays based on a given date. 20 | * 21 | * Filters for all holidays that happen on the given date. 22 | * 23 | * Note: this class can be used separately, however is implemented by the AbstractProvider::on method. 24 | * 25 | * @package Yasumi\Filters 26 | */ 27 | class OnFilter extends AbstractFilter 28 | { 29 | /** 30 | * @var string date to check for holidays 31 | */ 32 | private $date; 33 | 34 | 35 | /** 36 | * Construct the On FilterIterator Object 37 | * 38 | * @param Iterator $iterator Iterator object of the Holidays Provider 39 | * @param \DateTimeInterface $date Start date of the time frame to check against 40 | */ 41 | 42 | public function __construct( 43 | Iterator $iterator, 44 | \DateTimeInterface $date 45 | ) { 46 | parent::__construct($iterator); 47 | $this->date = $date->format('Y-m-d'); 48 | } 49 | 50 | /** 51 | * @return bool Check whether the current element of the iterator is acceptable 52 | */ 53 | public function accept(): bool 54 | { 55 | $holiday = $this->getInnerIterator()->current()->format('Y-m-d'); 56 | return $holiday === $this->date; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Aargau.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Aargau (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Aargau 25 | */ 26 | class Aargau extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-AG'; 35 | 36 | /** 37 | * Initialize holidays for Aargau (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/RhinelandPalatinate.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Rhineland Palatinate (Germany). 22 | * 23 | * Rhineland-Palatinate (German: Rheinland-Pfalz) is one of the 16 states (German: Bundesländer) of the Federal Republic 24 | * of Germany. It has an area of 19,846 square kilometres (7,663 sq mi) and about four million inhabitants. The city of 25 | * Mainz functions as the state capital. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Rhineland-Palatinate 28 | */ 29 | class RhinelandPalatinate extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-RP'; 36 | 37 | /** 38 | * Initialize holidays for Rhineland Palatinate (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 51 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/France/BasRhin.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\France; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\ChristianHolidays; 18 | use Yasumi\Provider\France; 19 | 20 | /** 21 | * Provider for all holidays in Bas-Rhin (France). 22 | * 23 | * Bas-Rhin is a department in the Alsace-Champagne-Ardenne-Lorraine region of France. The name means "Lower Rhine". 24 | * It is the more populous and densely populated of the two departments of the traditional Alsace region, with 1,109,460 25 | * inhabitants in 2013. The prefecture and the General Council are based in Strasbourg. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Bas-Rhin 28 | */ 29 | class BasRhin extends France 30 | { 31 | use ChristianHolidays; 32 | 33 | /** 34 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 35 | * country or sub-region. 36 | */ 37 | public const ID = 'FR-67'; 38 | 39 | /** 40 | * Initialize holidays for Bas-Rhin (France). 41 | * 42 | * @throws InvalidDateException 43 | * @throws \InvalidArgumentException 44 | * @throws UnknownLocaleException 45 | * @throws \Exception 46 | */ 47 | public function initialize(): void 48 | { 49 | parent::initialize(); 50 | 51 | // Add custom Christian holidays 52 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale)); 53 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/France/HautRhin.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\France; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\ChristianHolidays; 18 | use Yasumi\Provider\France; 19 | 20 | /** 21 | * Provider for all holidays in Haut-Rhin (France). 22 | * 23 | * Haut-Rhin is a department in the Alsace-Champagne-Ardenne-Lorraine region of France, named after the Rhine river. 24 | * Its name means Upper Rhine. Haut-Rhin is the smaller and less populated of the two departments of the traditional 25 | * Alsace region, although it is still densely populated compared to the rest of France. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Haut-Rhin 28 | */ 29 | class HautRhin extends France 30 | { 31 | use ChristianHolidays; 32 | 33 | /** 34 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 35 | * country or sub-region. 36 | */ 37 | public const ID = 'FR-68'; 38 | 39 | /** 40 | * Initialize holidays for Haut-Rhin (France). 41 | * 42 | * @throws InvalidDateException 43 | * @throws \InvalidArgumentException 44 | * @throws UnknownLocaleException 45 | * @throws \Exception 46 | */ 47 | public function initialize(): void 48 | { 49 | parent::initialize(); 50 | 51 | // Add custom Christian holidays 52 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale)); 53 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Solothurn.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Solothurn (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_Solothurn 25 | */ 26 | class Solothurn extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-SO'; 35 | 36 | /** 37 | * Initialize holidays for Solothurn (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | 53 | $this->calculateBerchtoldsTag(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/CentralNorth.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Australia\Tasmania; 19 | use Yasumi\Provider\DateTimeZoneFactory; 20 | 21 | /** 22 | * Provider for all holidays in central north Tasmania (Australia). 23 | * 24 | */ 25 | class CentralNorth extends Tasmania 26 | { 27 | /** 28 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 29 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 30 | * and I believe it to be a logical extension. 31 | */ 32 | public const ID = 'AU-TAS-CN'; 33 | 34 | /** 35 | * Initialize holidays for northeastern Tasmania (Australia). 36 | * 37 | * @throws \InvalidArgumentException 38 | * @throws UnknownLocaleException 39 | * @throws \Exception 40 | */ 41 | public function initialize(): void 42 | { 43 | parent::initialize(); 44 | 45 | $this->calculateDevonportShow(); 46 | } 47 | 48 | /** 49 | * Devonport Show 50 | * 51 | * @throws \Exception 52 | */ 53 | private function calculateDevonportShow(): void 54 | { 55 | $date = new DateTime($this->year . '-12-02', DateTimeZoneFactory::getDateTimeZone($this->timezone)); 56 | $date = $date->modify('previous friday'); 57 | $this->addHoliday(new Holiday('devonportShow', ['en' => 'Devonport Show'], $date, $this->locale)); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/Northwest/CircularHead.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania\Northwest; 14 | 15 | use DateInterval; 16 | use DateTime; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Australia\Tasmania\Northwest; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in Circular Head (Australia). 24 | * 25 | */ 26 | class CircularHead extends Northwest 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 31 | * and I believe it to be a logical extension. 32 | */ 33 | public const ID = 'AU-TAS-NW-CH'; 34 | 35 | /** 36 | * Initialize holidays for Circular Head (Australia). 37 | * 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->calculateAGFEST(); 47 | } 48 | 49 | /** 50 | * AGFEST 51 | * 52 | * @throws \Exception 53 | */ 54 | private function calculateAGFEST(): void 55 | { 56 | $date = new DateTime('first thursday of may ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)); 57 | $date = $date->add(new DateInterval('P1D')); 58 | $this->addHoliday(new Holiday('agfest', ['en' => 'AGFEST'], $date, $this->locale)); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/South.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateInterval; 16 | use DateTime; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Australia\Tasmania; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in southern Tasmania (Australia). 24 | * 25 | */ 26 | class South extends Tasmania 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 31 | * and I believe it to be a logical extension. 32 | */ 33 | public const ID = 'AU-TAS-SOU'; 34 | 35 | /** 36 | * Initialize holidays for southern Tasmania (Australia). 37 | * 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->calculateHobartShow(); 47 | } 48 | 49 | /** 50 | * Royal Hobart Show 51 | * 52 | * @throws \Exception 53 | */ 54 | private function calculateHobartShow(): void 55 | { 56 | $date = new DateTime('fourth saturday of october ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)); 57 | $date = $date->sub(new DateInterval('P2D')); 58 | $this->addHoliday(new Holiday('hobartShow', ['en' => 'Royal Hobart Show'], $date, $this->locale)); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/Northwest.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateInterval; 16 | use DateTime; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Australia\Tasmania; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in northwestern Tasmania (Australia). 24 | * 25 | */ 26 | class Northwest extends Tasmania 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 31 | * and I believe it to be a logical extension. 32 | */ 33 | public const ID = 'AU-TAS-NW'; 34 | 35 | /** 36 | * Initialize holidays for northwestern Tasmania (Australia). 37 | * 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->calculateBurnieShow(); 47 | } 48 | 49 | /** 50 | * Burnie Show 51 | * 52 | * @throws \Exception 53 | */ 54 | private function calculateBurnieShow(): void 55 | { 56 | $date = new DateTime('first saturday of october ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)); 57 | $date = $date->sub(new DateInterval('P1D')); 58 | $this->addHoliday(new Holiday('burnieShow', ['en' => 'Burnie Show'], $date, $this->locale)); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/KingIsland.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Australia\Tasmania; 19 | use Yasumi\Provider\DateTimeZoneFactory; 20 | 21 | /** 22 | * Provider for all holidays in King Island (Australia). 23 | * 24 | */ 25 | class KingIsland extends Tasmania 26 | { 27 | /** 28 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 29 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 30 | * and I believe it to be a logical extension. 31 | */ 32 | public const ID = 'AU-TAS-KI'; 33 | 34 | /** 35 | * Initialize holidays for King Island (Australia). 36 | * 37 | * @throws \InvalidArgumentException 38 | * @throws UnknownLocaleException 39 | * @throws \Exception 40 | */ 41 | public function initialize(): void 42 | { 43 | parent::initialize(); 44 | 45 | $this->calculateKingIslandShow(); 46 | } 47 | 48 | /** 49 | * King Island Show 50 | * 51 | * @throws \Exception 52 | */ 53 | private function calculateKingIslandShow(): void 54 | { 55 | $this->addHoliday(new Holiday( 56 | 'kingIslandShow', 57 | ['en' => 'King Island Show'], 58 | new DateTime('first tuesday of march ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)), 59 | $this->locale, 60 | Holiday::TYPE_OFFICIAL 61 | )); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/Northeast.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateInterval; 16 | use DateTime; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Australia\Tasmania; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in northeastern Tasmania (Australia). 24 | * 25 | */ 26 | class Northeast extends Tasmania 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 31 | * and I believe it to be a logical extension. 32 | */ 33 | public const ID = 'AU-TAS-NE'; 34 | 35 | /** 36 | * Initialize holidays for northeastern Tasmania (Australia). 37 | * 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->calculateLauncestonShow(); 47 | } 48 | 49 | /** 50 | * Royal Launceston Show 51 | * 52 | * @throws \Exception 53 | */ 54 | private function calculateLauncestonShow(): void 55 | { 56 | $date = new DateTime('second saturday of october ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)); 57 | $date = $date->sub(new DateInterval('P2D')); 58 | $this->addHoliday(new Holiday('launcestonShow', ['en' => 'Royal Launceston Show'], $date, $this->locale)); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Hesse.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Hesse (Germany). 21 | * 22 | * Hesse is a federal state (Land) of the Federal Republic of Germany, with just over six million inhabitants. The state 23 | * capital is Wiesbaden; the largest city is Frankfurt am Main. Until the formation of the German Reich in 1871, Hesse 24 | * was an independent country ruled by a Grand Duke (Grand Duchy of Hesse). Due to divisions after World War II, the 25 | * modern federal state does not cover the entire cultural region of Hesse which includes both the State of Hesse and 26 | * the area known as Rhenish Hesse (Rheinhessen) in the neighbouring state of Rhineland-Palatinate. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Hesse 29 | */ 30 | class Hesse extends Germany 31 | { 32 | /** 33 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 34 | * country or sub-region. 35 | */ 36 | public const ID = 'DE-HE'; 37 | 38 | /** 39 | * Initialize holidays for Hesse (Germany). 40 | * 41 | * @throws InvalidDateException 42 | * @throws \InvalidArgumentException 43 | * @throws UnknownLocaleException 44 | * @throws \Exception 45 | */ 46 | public function initialize(): void 47 | { 48 | parent::initialize(); 49 | 50 | // Add custom Christian holidays 51 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/FlindersIsland.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania; 14 | 15 | use DateInterval; 16 | use DateTime; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Australia\Tasmania; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in Flinders Island (Australia). 24 | * 25 | */ 26 | class FlindersIsland extends Tasmania 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 31 | * and I believe it to be a logical extension. 32 | */ 33 | public const ID = 'AU-TAS-FI'; 34 | 35 | /** 36 | * Initialize holidays for Flinders Island (Australia). 37 | * 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | $this->calculateFlindersIslandShow(); 47 | } 48 | 49 | /** 50 | * Flinders Island Show 51 | * 52 | * @throws \Exception 53 | */ 54 | private function calculateFlindersIslandShow(): void 55 | { 56 | $date = new DateTime('third saturday of october ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)); 57 | $date = $date->sub(new DateInterval('P1D')); 58 | $this->addHoliday(new Holiday('flindersIslandShow', ['en' => 'Flinders Island Show'], $date, $this->locale)); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/France/Moselle.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\France; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\ChristianHolidays; 18 | use Yasumi\Provider\France; 19 | 20 | /** 21 | * Provider for all holidays in Moselle (France). 22 | * 23 | * Moselle is one of the original 83 departments created during the French Revolution on March 4, 1790. It was created 24 | * from the former province of Lorraine. In 1793 France annexed the German enclaves of Manderen, Lixing-lès-Rouhling, 25 | * Momerstroff, and Créhange (Kriechingen) - all possessions of princes of the German Holy Roman Empire - and 26 | * incorporated them into the Moselle département. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Moselle_(department) 29 | */ 30 | class Moselle extends France 31 | { 32 | use ChristianHolidays; 33 | 34 | /** 35 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 36 | * country or sub-region. 37 | */ 38 | public const ID = 'FR-57'; 39 | 40 | /** 41 | * Initialize holidays for Moselle (France). 42 | * 43 | * @throws InvalidDateException 44 | * @throws \InvalidArgumentException 45 | * @throws UnknownLocaleException 46 | * @throws \Exception 47 | */ 48 | public function initialize(): void 49 | { 50 | parent::initialize(); 51 | 52 | // Add custom Christian holidays 53 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale)); 54 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Spain/Melilla.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Spain; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Spain; 20 | 21 | /** 22 | * Provider for all holidays in Melilla (Spain). 23 | * 24 | * Melilla is a Spanish city located on the north coast of Africa, sharing a border with Morocco with an area of 12.3 25 | * square kilometres (4.7 sq mi). Melilla, along with Ceuta, is one of two permanently inhabited Spanish cities in 26 | * mainland Africa. It was part of Málaga province until 14 March 1995, when the city's Statute of Autonomy was passed. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Melilla 29 | */ 30 | class Melilla extends Spain 31 | { 32 | use ChristianHolidays; 33 | 34 | /** 35 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 36 | * country or sub-region. 37 | */ 38 | public const ID = 'ES-ML'; 39 | 40 | /** 41 | * Initialize holidays for Melilla (Spain). 42 | * 43 | * @throws InvalidDateException 44 | * @throws \InvalidArgumentException 45 | * @throws UnknownLocaleException 46 | * @throws \Exception 47 | */ 48 | public function initialize(): void 49 | { 50 | parent::initialize(); 51 | 52 | // Add custom Christian holidays 53 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 54 | $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/BadenWurttemberg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Baden-Württemberg (Germany). 22 | * 23 | * Baden-Württemberg is a state in Germany located in the southwest, east of the Upper Rhine. It is Germany’s third 24 | * largest state in terms of size and population, with an area of 36,410 square kilometres (14,060 sq mi) and 10.7 25 | * million inhabitants. The state capital and largest city is Stuttgart. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Baden-W%C3%BCrttemberg 28 | */ 29 | class BadenWurttemberg extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-BW'; 36 | 37 | /** 38 | * Initialize holidays for Baden-Württemberg (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->addHoliday($this->epiphany($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 52 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Spain/Navarre.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Spain; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Spain; 20 | 21 | /** 22 | * Provider for all holidays in Navarre (Spain). 23 | * 24 | * Navarre, officially the Chartered Community of Navarre, is an autonomous community in northern Spain, bordering the 25 | * Basque Country, La Rioja, and Aragon in Spain and Aquitaine in France. The capital city is Pamplona (or Iruña in 26 | * Basque). 27 | * 28 | * @link https://en.wikipedia.org/wiki/Navarre 29 | */ 30 | class Navarre extends Spain 31 | { 32 | use ChristianHolidays; 33 | 34 | /** 35 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 36 | * country or sub-region. 37 | */ 38 | public const ID = 'ES-NC'; 39 | 40 | /** 41 | * Initialize holidays for Navarre (Spain). 42 | * 43 | * @throws InvalidDateException 44 | * @throws \InvalidArgumentException 45 | * @throws UnknownLocaleException 46 | * @throws \Exception 47 | */ 48 | public function initialize(): void 49 | { 50 | parent::initialize(); 51 | 52 | // Add custom Christian holidays 53 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 54 | $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 55 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Spain/Aragon.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Spain; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Spain; 20 | 21 | /** 22 | * Provider for all holidays in Aragon (Spain). 23 | * 24 | * Aragon is an autonomous community in Spain, coextensive with the medieval Kingdom of Aragon. Located in northeastern 25 | * Spain, the Aragonese autonomous community comprises three provinces (from north to south): Huesca, Zaragoza, and 26 | * Teruel. Its capital is Zaragoza (also called Saragossa in English). The current Statute of Autonomy declares Aragon a 27 | * nationality of Spain. 28 | * 29 | * @link https://en.wikipedia.org/wiki/Aragon 30 | */ 31 | class Aragon extends Spain 32 | { 33 | use ChristianHolidays; 34 | 35 | /** 36 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 37 | * country or sub-region. 38 | */ 39 | public const ID = 'ES-AR'; 40 | 41 | /** 42 | * Initialize holidays for Aragon (Spain). 43 | * 44 | * @throws InvalidDateException 45 | * @throws \InvalidArgumentException 46 | * @throws UnknownLocaleException 47 | * @throws \Exception 48 | */ 49 | public function initialize(): void 50 | { 51 | parent::initialize(); 52 | 53 | // Add custom Christian holidays 54 | $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 55 | $this->addHoliday($this->stGeorgesDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE)); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/composer/autoload_real.php: -------------------------------------------------------------------------------- 1 | = 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 | if ($useStaticLoader) { 33 | require __DIR__ . '/autoload_static.php'; 34 | 35 | call_user_func(\Composer\Autoload\ComposerStaticInitd88c4d610df115c3390fa52d43188afc::getInitializer($loader)); 36 | } else { 37 | $map = require __DIR__ . '/autoload_namespaces.php'; 38 | foreach ($map as $namespace => $path) { 39 | $loader->set($namespace, $path); 40 | } 41 | 42 | $map = require __DIR__ . '/autoload_psr4.php'; 43 | foreach ($map as $namespace => $path) { 44 | $loader->setPsr4($namespace, $path); 45 | } 46 | 47 | $classMap = require __DIR__ . '/autoload_classmap.php'; 48 | if ($classMap) { 49 | $loader->addClassMap($classMap); 50 | } 51 | } 52 | 53 | $loader->register(true); 54 | 55 | return $loader; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Bavaria.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Bavaria (Germany). 22 | * 23 | * Bavaria is a federal state of Germany. In the southeast of the country with an area of 70,548 square kilometres 24 | * (27,200 sq mi), it is the largest state, making up almost a fifth of the total land area of Germany, and, with 12.6 25 | * million inhabitants, Germany's second most populous state. Munich, Bavaria's capital and largest city, is the third 26 | * largest city in Germany. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Bavaria 29 | */ 30 | class Bavaria extends Germany 31 | { 32 | /** 33 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 34 | * country or sub-region. 35 | */ 36 | public const ID = 'DE-BY'; 37 | 38 | /** 39 | * Initialize holidays for Bavaria (Germany). 40 | * 41 | * @throws InvalidDateException 42 | * @throws \InvalidArgumentException 43 | * @throws UnknownLocaleException 44 | * @throws \Exception 45 | */ 46 | public function initialize(): void 47 | { 48 | parent::initialize(); 49 | 50 | // Add custom Christian holidays 51 | $this->addHoliday($this->epiphany($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 53 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Saarland.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Saarland (Germany). 22 | * 23 | * The Saarland (German: das Saarland) is one of the sixteen federal states (or Bundesländer) of Germany. With its 24 | * capital at Saarbrücken, it has an area of 2,570 km² and its population (as of 30 April 2012) is approximately 25 | * 1,012,000. In terms of both area and population size – apart from the city-states of Berlin, Bremen and Hamburg – it 26 | * is Germany's smallest federal state. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Saarland 29 | */ 30 | class Saarland extends Germany 31 | { 32 | /** 33 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 34 | * country or sub-region. 35 | */ 36 | public const ID = 'DE-SL'; 37 | 38 | /** 39 | * Initialize holidays for Saarland (Germany). 40 | * 41 | * @throws InvalidDateException 42 | * @throws \InvalidArgumentException 43 | * @throws UnknownLocaleException 44 | * @throws \Exception 45 | */ 46 | public function initialize(): void 47 | { 48 | parent::initialize(); 49 | 50 | // Add custom Christian holidays 51 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 52 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->assumptionOfMary($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/NorthRhineWestphalia.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in North Rhine-Westphalia (Germany). 22 | * 23 | * North Rhine-Westphalia (German: Nordrhein-Westfalen), commonly shortened NRW) is the most populous state of Germany, 24 | * with a population of approximately 18 million, and the fourth largest by area. Its capital is Düsseldorf; the biggest 25 | * city is Cologne. Four of Germany's ten biggest cities—Cologne, Düsseldorf, Dortmund, and Essen—are located within the 26 | * state, as well as the biggest metropolitan area of the European continent, Rhine-Ruhr. 27 | * 28 | * @link https://en.wikipedia.org/wiki/North_Rhine-Westphalia 29 | */ 30 | class NorthRhineWestphalia extends Germany 31 | { 32 | /** 33 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 34 | * country or sub-region. 35 | */ 36 | public const ID = 'DE-NW'; 37 | 38 | /** 39 | * Initialize holidays for North Rhine-Westphalia (Germany). 40 | * 41 | * @throws InvalidDateException 42 | * @throws \InvalidArgumentException 43 | * @throws UnknownLocaleException 44 | * @throws \Exception 45 | */ 46 | public function initialize(): void 47 | { 48 | parent::initialize(); 49 | 50 | // Add custom Christian holidays 51 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 52 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Fribourg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Fribourg (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_Fribourg 25 | */ 26 | class Fribourg extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-FR'; 35 | 36 | /** 37 | * Initialize holidays for Fribourg (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Australia/Tasmania/South/Southeast.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Australia\Tasmania\South; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Australia\Tasmania\South; 19 | use Yasumi\Provider\DateTimeZoneFactory; 20 | 21 | /** 22 | * Provider for all holidays in southeastern Tasmania (Australia). 23 | * 24 | */ 25 | class Southeast extends South 26 | { 27 | /** 28 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 29 | * country or sub-region. This one is not a proper ISO3166 code, but there aren't any for areas within Tasmania, 30 | * and I believe it to be a logical extension. 31 | */ 32 | public const ID = 'AU-TAS-SOU-SE'; 33 | 34 | public $timezone = 'Australia/Hobart'; 35 | 36 | /** 37 | * Initialize holidays for southeastern Tasmania (Australia). 38 | * 39 | * @throws \InvalidArgumentException 40 | * @throws UnknownLocaleException 41 | * @throws \Exception 42 | */ 43 | public function initialize(): void 44 | { 45 | parent::initialize(); 46 | 47 | $this->removeHoliday('recreationDay'); 48 | $this->calculateHobartRegatta(); 49 | } 50 | 51 | /** 52 | * Royal Hobart Regatta 53 | * 54 | * @throws \Exception 55 | */ 56 | private function calculateHobartRegatta(): void 57 | { 58 | $this->addHoliday(new Holiday( 59 | 'hobartRegatta', 60 | ['en' => 'Royal Hobart Regatta'], 61 | new DateTime('second monday of february ' . $this->year, DateTimeZoneFactory::getDateTimeZone($this->timezone)), 62 | $this->locale, 63 | Holiday::TYPE_OFFICIAL 64 | )); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Vaud.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Vaud (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Vaud 25 | */ 26 | class Vaud extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-VD'; 35 | 36 | /** 37 | * Initialize holidays for Vaud (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | 55 | $this->calculateBerchtoldsTag(); 56 | $this->calculateBettagsMontag(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Grisons.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Grisons (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Grisons 25 | */ 26 | class Grisons extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-GR'; 35 | 36 | /** 37 | * Initialize holidays for Grisons (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Bern.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Bern (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_Bern 25 | */ 26 | class Bern extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-BE'; 35 | 36 | /** 37 | * Initialize holidays for Bern (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 55 | 56 | $this->calculateBerchtoldsTag(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/AppenzellAusserrhoden.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Appenzell Ausserrhoden (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Appenzell_Ausserrhoden 25 | */ 26 | class AppenzellAusserrhoden extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-AR'; 35 | 36 | /** 37 | * Initialize holidays for Appenzell Ausserrhoden (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/Alberta.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\InvalidDateException; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Canada; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in Alberta (Canada). 24 | * 25 | * Manitoba is a province of Canada. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Alberta 28 | */ 29 | class Alberta extends Canada 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'CA-AB'; 36 | 37 | /** 38 | * Initialize holidays for Alberta (Canada). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | $this->timezone = 'America/Edmonton'; 50 | 51 | $this->calculateHeritageDay(); 52 | $this->calculateFamilyDay(); 53 | $this->calculateVictoriaDay(); 54 | } 55 | 56 | /** 57 | * Heritage Day. 58 | * 59 | * @link https://en.wikipedia.org/wiki/Civic_Holiday 60 | * 61 | * @throws InvalidDateException 62 | * @throws \InvalidArgumentException 63 | * @throws UnknownLocaleException 64 | * @throws \Exception 65 | */ 66 | protected function calculateHeritageDay(): void 67 | { 68 | if ($this->year < 1879) { 69 | return; 70 | } 71 | 72 | $this->addHoliday(new Holiday( 73 | 'heritageDay', 74 | [], 75 | new DateTime("first monday of august $this->year", DateTimeZoneFactory::getDateTimeZone($this->timezone)), 76 | $this->locale 77 | )); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/SchleswigHolstein.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Schleswig-Holstein (Germany). 21 | * 22 | * Schleswig-Holstein is the northernmost of the 16 states of Germany, comprising most of the historical duchy of 23 | * Holstein and the southern part of the former Duchy of Schleswig. Its capital city is Kiel; other notable cities are 24 | * Lübeck and Flensburg. 25 | * 26 | * @link https://en.wikipedia.org/wiki/Schleswig-Holstein 27 | */ 28 | class SchleswigHolstein extends Germany 29 | { 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'DE-SH'; 35 | 36 | /** 37 | * Initialize holidays for Schleswig-Holstein (Germany). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | // Add custom Christian holidays 49 | $this->calculateReformationDay(); 50 | } 51 | 52 | /** 53 | * For the German state of Schleswig-Holstein, Reformation Day is celebrated since 2018. 54 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 55 | * 56 | * @throws InvalidDateException 57 | * @throws \InvalidArgumentException 58 | * @throws UnknownLocaleException 59 | * @throws \Exception 60 | */ 61 | private function calculateReformationDay(): void 62 | { 63 | if ($this->year < 2018) { 64 | return; 65 | } 66 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Bremen.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Bremen (Germany). 21 | * 22 | * The Free Hanseatic City of Bremen is the smallest of Germany's 16 states. A more informal name, but used in some 23 | * official contexts, is Land Bremen ('State of Bremen'). The state consists of two enclaves with two cities (Bremen 24 | * and Bremerhaven) in the North of Germany, surrounded by the larger state of Lower Saxony. 25 | * 26 | * @link https://en.wikipedia.org/wiki/Bremen_(state) 27 | */ 28 | class Bremen extends Germany 29 | { 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'DE-HB'; 35 | 36 | /** 37 | * Initialize holidays for Bremen (Germany). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | // Add custom Christian holidays 49 | $this->calculateReformationDay(); 50 | } 51 | 52 | /** 53 | * For the German state of Bremen, Reformation Day is celebrated since 2018. 54 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 55 | * 56 | * @throws InvalidDateException 57 | * @throws \InvalidArgumentException 58 | * @throws UnknownLocaleException 59 | * @throws \Exception 60 | */ 61 | private function calculateReformationDay(): void 62 | { 63 | if ($this->year < 2018) { 64 | return; 65 | } 66 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/StGallen.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in St. Gallen (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_St._Gallen 25 | */ 26 | class StGallen extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-SG'; 35 | 36 | /** 37 | * Initialize holidays for St. Gallen (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 52 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 53 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 54 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 55 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Canada/Saskatchewan.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Canada; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\InvalidDateException; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Canada; 20 | use Yasumi\Provider\DateTimeZoneFactory; 21 | 22 | /** 23 | * Provider for all holidays in Saskatchewan (Canada). 24 | * 25 | * Saskatchewan is a province of Canada. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Saskatchewan 28 | */ 29 | class Saskatchewan extends Canada 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'CA-SK'; 36 | 37 | /** 38 | * Initialize holidays for Saskatchewan (Canada). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | $this->timezone = 'America/Regina'; 50 | 51 | $this->calculateSaskatchewanDay(); 52 | $this->calculateFamilyDay(); 53 | $this->calculateVictoriaDay(); 54 | } 55 | 56 | /** 57 | * Civic Holiday. 58 | * 59 | * @link https://en.wikipedia.org/wiki/Civic_Holiday 60 | * 61 | * @throws InvalidDateException 62 | * @throws \InvalidArgumentException 63 | * @throws UnknownLocaleException 64 | * @throws \Exception 65 | */ 66 | protected function calculateSaskatchewanDay(): void 67 | { 68 | if ($this->year < 1879) { 69 | return; 70 | } 71 | 72 | $this->addHoliday(new Holiday( 73 | 'saskatchewanDay', 74 | [], 75 | new DateTime("first monday of august $this->year", DateTimeZoneFactory::getDateTimeZone($this->timezone)), 76 | $this->locale 77 | )); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Valais.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Valais (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Valais 25 | */ 26 | class Valais extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-VS'; 35 | 36 | /** 37 | * Initialize holidays for Valais (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale)); 49 | $this->addHoliday($this->assumptionOfMary($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 50 | $this->addHoliday($this->allSaintsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->addHoliday($this->immaculateConception( 52 | $this->year, 53 | $this->timezone, 54 | $this->locale, 55 | Holiday::TYPE_OTHER 56 | )); 57 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/BaselStadt.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Basel-Stadt (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Basel-Stadt 25 | */ 26 | class BaselStadt extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-BS'; 35 | 36 | /** 37 | * Initialize holidays for Basel-Stadt (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->internationalWorkersDay( 50 | $this->year, 51 | $this->timezone, 52 | $this->locale, 53 | Holiday::TYPE_OTHER 54 | )); 55 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 57 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Thuringia.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Thuringia (Germany). 21 | * 22 | * The Free State of Thuringia is a federal state of Germany, located in the central part of the country. It has an area 23 | * of 16,171 square kilometres (6,244 sq mi) and 2.29 million inhabitants, making it the sixth smallest by area and the 24 | * fifth smallest by population of Germany's sixteen states. Most of Thuringia is within the watershed of the Saale, a 25 | * left tributary of the Elbe. Its capital is Erfurt. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Thuringia 28 | */ 29 | class Thuringia extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-TH'; 36 | 37 | /** 38 | * Initialize holidays for Thuringia (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->calculateReformationDay(); 51 | } 52 | 53 | /** 54 | * For the German state of Thuringia, Reformation Day was celebrated since 1517. 55 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 56 | * 57 | * @throws InvalidDateException 58 | * @throws \InvalidArgumentException 59 | * @throws UnknownLocaleException 60 | * @throws \Exception 61 | */ 62 | private function calculateReformationDay(): void 63 | { 64 | if ($this->year < 1517) { 65 | return; 66 | } 67 | 68 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/BaselLandschaft.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Basel-Landschaft (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Basel-Landschaft 25 | */ 26 | class BaselLandschaft extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-BL'; 35 | 36 | /** 37 | * Initialize holidays for Basel-Landschaft (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->internationalWorkersDay( 50 | $this->year, 51 | $this->timezone, 52 | $this->locale, 53 | Holiday::TYPE_OTHER 54 | )); 55 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 57 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Thurgau.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Thurgau (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Thurgau 25 | */ 26 | class Thurgau extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-TG'; 35 | 36 | /** 37 | * Initialize holidays for Thurgau (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->internationalWorkersDay( 50 | $this->year, 51 | $this->timezone, 52 | $this->locale, 53 | Holiday::TYPE_OTHER 54 | )); 55 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 57 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | 62 | $this->calculateBerchtoldsTag(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Zurich.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Zürich (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_Z%C3%BCrich 25 | */ 26 | class Zurich extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-ZH'; 35 | 36 | /** 37 | * Initialize holidays for Zürich (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->internationalWorkersDay( 50 | $this->year, 51 | $this->timezone, 52 | $this->locale, 53 | Holiday::TYPE_OTHER 54 | )); 55 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 57 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | 62 | $this->calculateBerchtoldsTag(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/MecklenburgWesternPomerania.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Mecklenburg-Western Pomerania (Germany). 21 | * 22 | * Mecklenburg-Vorpommern (also known as Mecklenburg-Western Pomerania in English) is a federated state in northern 23 | * Germany. The capital city is Schwerin. The state was formed through the merger of the historic regions of Mecklenburg 24 | * and Vorpommern after the Second World War, dissolved in 1952 and recreated at the time of the German reunification in 25 | * 1990. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Mecklenburg-Vorpommern 28 | */ 29 | class MecklenburgWesternPomerania extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-MV'; 36 | 37 | /** 38 | * Initialize holidays for Mecklenburg-Western Pomerania (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->calculateReformationDay(); 51 | } 52 | 53 | /** 54 | * For the German state of Mecklenburg-Western Pomerania, Reformation Day was celebrated since 1517. 55 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 56 | * 57 | * @throws InvalidDateException 58 | * @throws \InvalidArgumentException 59 | * @throws UnknownLocaleException 60 | * @throws \Exception 61 | */ 62 | private function calculateReformationDay(): void 63 | { 64 | if ($this->year < 1517) { 65 | return; 66 | } 67 | 68 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Switzerland/Schaffhausen.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Switzerland; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\ChristianHolidays; 19 | use Yasumi\Provider\Switzerland; 20 | 21 | /** 22 | * Provider for all holidays in Schaffhausen (Switzerland). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Canton_of_Schaffhausen 25 | */ 26 | class Schaffhausen extends Switzerland 27 | { 28 | use ChristianHolidays; 29 | 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'CH-SH'; 35 | 36 | /** 37 | * Initialize holidays for Schaffhausen (Switzerland). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | $this->addHoliday($this->goodFriday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 49 | $this->addHoliday($this->internationalWorkersDay( 50 | $this->year, 51 | $this->timezone, 52 | $this->locale, 53 | Holiday::TYPE_OTHER 54 | )); 55 | $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 56 | $this->addHoliday($this->newYearsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 57 | $this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 58 | $this->addHoliday($this->ascensionDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 59 | $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 60 | $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 61 | 62 | $this->calculateBerchtoldsTag(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Carinthia.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\InvalidDateException; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Austria; 20 | 21 | /** 22 | * Provider for all holidays in Carinthia (Austria). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Carinthia 25 | */ 26 | class Carinthia extends Austria 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'AT-2'; 33 | 34 | /** 35 | * Initialize holidays for Carinthia (Austria). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | // Add custom Common holidays. 47 | $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale)); 48 | $this->calculatePlebisciteDay(); 49 | } 50 | 51 | /** 52 | * Plebiscite Day. 53 | * 54 | * The Carinthian plebiscite was held on 10 October 1920 in the area 55 | * predominantly settled by Carinthian Slovenes. It determined the final 56 | * southern border between the Republic of Austria and the newly formed 57 | * Kingdom of Serbs, Croats and Slovenes (Yugoslavia) after World War I. 58 | * 59 | * @link https://en.wikipedia.org/wiki/1920_Carinthian_plebiscite 60 | * 61 | * @throws InvalidDateException 62 | * @throws \InvalidArgumentException 63 | * @throws UnknownLocaleException 64 | * @throws \Exception 65 | */ 66 | private function calculatePlebisciteDay(): void 67 | { 68 | if ($this->year < 1920) { 69 | return; 70 | } 71 | 72 | $this->addHoliday(new Holiday( 73 | 'plebisciteDay', 74 | [], 75 | new DateTime($this->year . '-10-10', new \DateTimeZone($this->timezone)), 76 | $this->locale 77 | )); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/SaxonyAnhalt.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Saxony-Anhalt (Germany). 22 | * 23 | * Saxony-Anhalt (German: Sachsen-Anhalt) is a landlocked federal state of Germany surrounded by the federal states of 24 | * Lower Saxony, Brandenburg, Saxony and Thuringia. Its capital is Magdeburg and its largest city is Halle (Saale). 25 | * Saxony-Anhalt covers an area of 20,447.7 square kilometres (7,894.9 sq mi)[4] and has a population of 2.34 million. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Saxony-Anhalt 28 | */ 29 | class SaxonyAnhalt extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-ST'; 36 | 37 | /** 38 | * Initialize holidays for Saxony-Anhalt (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->addHoliday($this->epiphany($this->year, $this->timezone, $this->locale, Holiday::TYPE_OTHER)); 51 | $this->calculateReformationDay(); 52 | } 53 | 54 | /** 55 | * For the German state of Saxony-Anhalt, Reformation Day was celebrated since 1517. 56 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 57 | * 58 | * @throws InvalidDateException 59 | * @throws \InvalidArgumentException 60 | * @throws UnknownLocaleException 61 | * @throws \Exception 62 | */ 63 | private function calculateReformationDay(): void 64 | { 65 | if ($this->year < 1517) { 66 | return; 67 | } 68 | 69 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/Salzburg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\InvalidDateException; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Austria; 20 | 21 | /** 22 | * Provider for all holidays in Salzburg (Austria). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Salzburg_(state) 25 | */ 26 | class Salzburg extends Austria 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'AT-5'; 33 | 34 | /** 35 | * Initialize holidays for Salzburg (Austria). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | // Add custom holidays. 47 | $this->calculateStRupertsDay(); 48 | } 49 | 50 | /** 51 | * Saint Rupert's Day. 52 | * 53 | * Rupert of Salzburg was Bishop of Worms as well as the first Bishop of 54 | * Salzburg and abbot of St. Peter's in Salzburg. He was a contemporary of 55 | * the Frankish king Childebert III and is venerated as a saint in the 56 | * Roman Catholic and Eastern Orthodox Churches. Rupert is also patron 57 | * saint of the Austrian state of Salzburg. His feast day in Austria is 58 | * September 24 (since 710). 59 | * 60 | * @link https://en.wikipedia.org/wiki/Rupert_of_Salzburg 61 | * 62 | * @throws InvalidDateException 63 | * @throws \InvalidArgumentException 64 | * @throws UnknownLocaleException 65 | * @throws \Exception 66 | */ 67 | private function calculateStRupertsDay(): void 68 | { 69 | if ($this->year < 710) { 70 | return; 71 | } 72 | 73 | $this->addHoliday(new Holiday( 74 | 'stRupertsDay', 75 | [], 76 | new DateTime($this->year . '-9-24', new \DateTimeZone($this->timezone)), 77 | $this->locale 78 | )); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/LowerSaxony.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Lower Saxony (Germany). 21 | * 22 | * Lower Saxony (German: Niedersachsen) is a German state (Bundesland) situated in northwestern Germany and is second 23 | * in area, with 47,624 square kilometres (18,388 sq mi), and fourth in population (8 million) among the sixteen Länder 24 | * of Germany. In rural areas Northern Low Saxon, a dialect of Low German, and Saterland Frisian, a variety of Frisian, 25 | * are still spoken, but the number of speakers is declining. 26 | * 27 | * @link https://en.wikipedia.org/wiki/Lower_Saxony 28 | */ 29 | class LowerSaxony extends Germany 30 | { 31 | /** 32 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 33 | * country or sub-region. 34 | */ 35 | public const ID = 'DE-NI'; 36 | 37 | /** 38 | * Initialize holidays for Lower Saxony (Germany). 39 | * 40 | * @throws InvalidDateException 41 | * @throws \InvalidArgumentException 42 | * @throws UnknownLocaleException 43 | * @throws \Exception 44 | */ 45 | public function initialize(): void 46 | { 47 | parent::initialize(); 48 | 49 | // Add custom Christian holidays 50 | $this->calculateReformationDay(); 51 | } 52 | 53 | /** 54 | * For the German state of Lower Saxony, Reformation Day is celebrated since 2018. 55 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 56 | * 57 | * @link https://www.zeit.de/gesellschaft/zeitgeschehen/2018-06/reformationstag-niedersachsen-neuer-feiertag 58 | * 59 | * @throws InvalidDateException 60 | * @throws \InvalidArgumentException 61 | * @throws UnknownLocaleException 62 | * @throws \Exception 63 | */ 64 | private function calculateReformationDay(): void 65 | { 66 | if ($this->year < 2018) { 67 | return; 68 | } 69 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Brandenburg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Provider\Germany; 18 | 19 | /** 20 | * Provider for all holidays in Brandenburg (Germany). 21 | * 22 | * Brandenburg is one of the sixteen federated states of Germany. It lies in the northeast of the country covering an 23 | * area of 29,478 square kilometers and has 2.45 million inhabitants. The capital and largest city is Potsdam. 24 | * Brandenburg surrounds but does not include the national capital and city-state Berlin forming a metropolitan area. 25 | * 26 | * @link https://en.wikipedia.org/wiki/Brandenburg 27 | */ 28 | class Brandenburg extends Germany 29 | { 30 | /** 31 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 32 | * country or sub-region. 33 | */ 34 | public const ID = 'DE-BB'; 35 | 36 | /** 37 | * Initialize holidays for Brandenburg (Germany). 38 | * 39 | * @throws InvalidDateException 40 | * @throws \InvalidArgumentException 41 | * @throws UnknownLocaleException 42 | * @throws \Exception 43 | */ 44 | public function initialize(): void 45 | { 46 | parent::initialize(); 47 | 48 | // Add specific Christian holidays 49 | $this->addHoliday($this->easter($this->year, $this->timezone, $this->locale)); 50 | $this->addHoliday($this->pentecost($this->year, $this->timezone, $this->locale)); 51 | 52 | // Add custom Christian holidays 53 | $this->calculateReformationDay(); 54 | } 55 | 56 | /** 57 | * For the German state of Brandenburg, Reformation Day was celebrated since 1517. 58 | * Note: In 2017 all German states will celebrate Reformation Day for its 500th anniversary. 59 | * 60 | * @throws InvalidDateException 61 | * @throws \InvalidArgumentException 62 | * @throws UnknownLocaleException 63 | * @throws \Exception 64 | */ 65 | private function calculateReformationDay(): void 66 | { 67 | if ($this->year < 1517) { 68 | return; 69 | } 70 | 71 | $this->addHoliday($this->reformationDay($this->year, $this->timezone, $this->locale)); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Germany/Hamburg.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Germany; 14 | 15 | use Yasumi\Exception\InvalidDateException; 16 | use Yasumi\Exception\UnknownLocaleException; 17 | use Yasumi\Holiday; 18 | use Yasumi\Provider\Germany; 19 | 20 | /** 21 | * Provider for all holidays in Hamburg (Germany). 22 | * 23 | * Hamburg, officially Freie und Hansestadt Hamburg (Free and Hanseatic City of Hamburg), is the second largest city in 24 | * Germany and the eighth largest city in the European Union. It is the second smallest German state by area. Its 25 | * population is over 1.7 million people, and the Hamburg Metropolitan Region (including parts of the neighbouring 26 | * Federal States of Lower Saxony and Schleswig-Holstein) has more than 5 million inhabitants. 27 | * 28 | * @link https://en.wikipedia.org/wiki/Hamburg 29 | */ 30 | class Hamburg extends Germany 31 | { 32 | /** 33 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 34 | * country or sub-region. 35 | */ 36 | public const ID = 'DE-HH'; 37 | 38 | /** 39 | * Initialize holidays for Schleswig-Holstein (Germany). 40 | * 41 | * @throws InvalidDateException 42 | * @throws \InvalidArgumentException 43 | * @throws UnknownLocaleException 44 | * @throws \Exception 45 | */ 46 | public function initialize(): void 47 | { 48 | parent::initialize(); 49 | 50 | $this->calculateDayOfReformation(); 51 | } 52 | 53 | /** 54 | * Since 2018 Hamburg celebrates the "Day of Reformation". 55 | * It is not called "Reformation Day" like other states to prevent church-based associations 56 | * 57 | * @throws InvalidDateException 58 | * @throws \InvalidArgumentException 59 | * @throws UnknownLocaleException 60 | * @throws \Exception 61 | */ 62 | private function calculateDayOfReformation(): void 63 | { 64 | if ($this->year < 2018) { 65 | return; 66 | } 67 | 68 | $this->addHoliday( 69 | new Holiday( 70 | 'dayOfReformation', 71 | [], 72 | new \DateTime("{$this->year}-10-31", new \DateTimeZone($this->timezone)), 73 | $this->locale, 74 | Holiday::TYPE_OFFICIAL 75 | ) 76 | ); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Provider/Austria/UpperAustria.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | 13 | namespace Yasumi\Provider\Austria; 14 | 15 | use DateTime; 16 | use Yasumi\Exception\InvalidDateException; 17 | use Yasumi\Exception\UnknownLocaleException; 18 | use Yasumi\Holiday; 19 | use Yasumi\Provider\Austria; 20 | 21 | /** 22 | * Provider for all holidays in Upper Austria (Austria). 23 | * 24 | * @link https://en.wikipedia.org/wiki/Upper_Austria 25 | */ 26 | class UpperAustria extends Austria 27 | { 28 | /** 29 | * Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective 30 | * country or sub-region. 31 | */ 32 | public const ID = 'AT-4'; 33 | 34 | /** 35 | * Initialize holidays for Upper Austria (Austria). 36 | * 37 | * @throws InvalidDateException 38 | * @throws \InvalidArgumentException 39 | * @throws UnknownLocaleException 40 | * @throws \Exception 41 | */ 42 | public function initialize(): void 43 | { 44 | parent::initialize(); 45 | 46 | // Add custom holidays. 47 | $this->calculateStFloriansDay(); 48 | } 49 | 50 | /** 51 | * Saint Florian's Day. 52 | * 53 | * St. Florian was born around 250 AD in the ancient Roman city of Aelium 54 | * Cetium, present-day Sankt Pölten, Austria. He joined the Roman Army and 55 | * advanced in the ranks, rising to commander of the imperial army in the 56 | * Roman province of Noricum. In addition to his military duties, he was 57 | * also responsible for organizing and leading firefighting brigades. 58 | * Florian organized and trained an elite group of soldiers whose sole duty 59 | * was to fight fires. His feast day is May 4 (since 304). 60 | * 61 | * @link https://en.wikipedia.org/wiki/Saint_Florian 62 | * 63 | * @throws InvalidDateException 64 | * @throws \InvalidArgumentException 65 | * @throws UnknownLocaleException 66 | * @throws \Exception 67 | */ 68 | private function calculateStFloriansDay(): void 69 | { 70 | if ($this->year < 304) { 71 | return; 72 | } 73 | 74 | $this->addHoliday(new Holiday( 75 | 'stFloriansDay', 76 | [], 77 | new DateTime($this->year . '-5-4', new \DateTimeZone($this->timezone)), 78 | $this->locale 79 | )); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /vendor/azuyalabs/yasumi/src/Yasumi/Filters/BetweenFilter.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | 14 | namespace Yasumi\Filters; 15 | 16 | use Iterator; 17 | 18 | /** 19 | * BetweenFilter is a class used for filtering holidays based on given date range. 20 | * 21 | * Filters all holidays between the given start and end date. An additional parameter can be used to identify if the 22 | * start and end date need to be included in the comparison. 23 | * 24 | * Note: this class can be used separately, however is implemented by the AbstractProvider::between method. 25 | * 26 | * @package Yasumi\Filters 27 | */ 28 | class BetweenFilter extends AbstractFilter 29 | { 30 | /** 31 | * @var string start date of the time frame to check against 32 | */ 33 | private $startDate; 34 | 35 | /** 36 | * @var string end date of the time frame to check against 37 | */ 38 | private $endDate; 39 | 40 | /** 41 | * @var bool indicates whether the start and end dates should be included in the comparison 42 | */ 43 | private $equal; 44 | 45 | /** 46 | * Construct the Between FilterIterator Object 47 | * 48 | * @param Iterator $iterator Iterator object of the Holidays Provider 49 | * @param \DateTimeInterface $startDate Start date of the time frame to check against 50 | * @param \DateTimeInterface $endDate End date of the time frame to check against 51 | * @param bool $equal Indicate whether the start and end dates should be included in the 52 | * comparison 53 | */ 54 | public function __construct( 55 | Iterator $iterator, 56 | \DateTimeInterface $startDate, 57 | \DateTimeInterface $endDate, 58 | bool $equal = true 59 | ) { 60 | parent::__construct($iterator); 61 | $this->equal = $equal; 62 | $this->startDate = $startDate->format('Y-m-d'); 63 | $this->endDate = $endDate->format('Y-m-d'); 64 | } 65 | 66 | /** 67 | * @return bool Check whether the current element of the iterator is acceptable 68 | */ 69 | public function accept(): bool 70 | { 71 | $holiday = $this->getInnerIterator()->current()->format('Y-m-d'); 72 | 73 | if ($this->equal && $holiday >= $this->startDate && $holiday <= $this->endDate) { 74 | return true; 75 | } 76 | 77 | return $holiday > $this->startDate && $holiday < $this->endDate; 78 | } 79 | } 80 | --------------------------------------------------------------------------------