for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
* Copyright (c) 2015 - 2020 AzuyaLabs
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Sacha Telgenhof <[email protected]>
*/
namespace Yasumi\Provider\Austria;
use Yasumi\Exception\InvalidDateException;
use Yasumi\Exception\UnknownLocaleException;
use Yasumi\Provider\Austria;
* Provider for all holidays in Tyrol (Austria).
* @link https://en.wikipedia.org/wiki/Tyrol_(state)
class Tyrol extends Austria
{
* Code to identify this Holiday Provider. Typically this is the ISO3166 code corresponding to the respective
* country or sub-region.
public const ID = 'AT-7';
* Initialize holidays for Tyrol (Austria).
* @throws InvalidDateException
* @throws \InvalidArgumentException
* @throws UnknownLocaleException
* @throws \Exception
public function initialize(): void
parent::initialize();
// Add custom Common holidays.
$this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale));
}