Наследование: extends AbstractProvider, use trait CommonHolidays, use trait ChristianHolidays
Пример #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));
 }
Пример #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();
 }
Пример #3
0
 /**
  * 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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }
Пример #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();
 }