Inheritance: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
Beispiel #1
0
 /**
  * Initialize holidays for Melilla (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
 }
Beispiel #2
0
 /**
  * Initialize holidays for Cantabria (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateCantabriaDay();
 }
 /**
  * Initialize holidays for the Valencian Community (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateValencianCommunityDay();
 }
Beispiel #4
0
 /**
  * Initialize holidays for the Community Of Madrid (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->corpusChristi($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateDosdeMayoUprisingDay();
 }
Beispiel #5
0
 /**
  * Initialize holidays for Galicia (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateGalicianLiteratureDay();
     $this->calculateStJamesDay();
 }
Beispiel #6
0
 /**
  * Initialize holidays for Catalonia (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->stJohnsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateNationalDayOfCatalonia();
 }
Beispiel #7
0
 /**
  * Initialize holidays for Balearic Islands (Spain).
  */
 public function initialize()
 {
     parent::initialize();
     // Add custom Christian holidays
     $this->addHoliday($this->stJosephsDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->maundyThursday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->easterMonday($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     $this->addHoliday($this->stStephensDay($this->year, $this->timezone, $this->locale, Holiday::TYPE_OBSERVANCE));
     // Calculate other holidays
     $this->calculateBalearicIslandsDay();
 }