public function setHolidays(\DateTime $lngDate, $inclCatholicEaster = false, $inclWorkingHolidays = false)
    {
        $givenYear = $lngDate->format('Y');
        $daying    = array_merge($this->setHolidaysOrthodoxEaster($lngDate), $this->setHolidaysFixed($lngDate));
        if ($inclWorkingHolidays) {
            $daying = array_merge($daying, $this->setHolidaysFixedButWorking($lngDate));
        }
        if ($inclCatholicEaster) { // Catholic easter is already known by PHP
            $firstEasterDate  = strtotime($this->getEasterDatetime($givenYear)->format('Y-m-d'));
            $secondEasterDate = strtotime('+1 day', $firstEasterDate);
            $daying           = array_merge($daying, [
                $firstEasterDate,
                $secondEasterDate,
            ]);
        }
        sort($daying);
        return array_unique($daying); // remove duplicate for when catholic and orthodox easter match
    }
public function setHolidays(\DateTime $lngDate, $inclCatholicEaster = false, $inclWorkingHolidays = false)
    {
        $givenYear = $lngDate->format('Y');
        $daying    = array_merge($this->setHolidaysOrthodoxEaster($lngDate), $this->setHolidaysFixed($lngDate));
        if ($inclWorkingHolidays) {
            $daying = array_merge($daying, $this->setHolidaysFixedButWorking($lngDate));
        }
        if ($inclCatholicEaster) { // Catholic easter is already known by PHP
            $firstEasterDate  = strtotime($this->getEasterDatetime($givenYear)->format('Y-m-d'));
            $secondEasterDate = strtotime('+1 day', $firstEasterDate);
            $daying           = array_merge($daying, [
                $firstEasterDate,
                $secondEasterDate,
            ]);
        }
        sort($daying);
        return array_unique($daying); // remove duplicate for when catholic and orthodox easter match
    }
public function setHolidays ( \ DateTime $ lngDate , $ inclCatholicEaster = false , $ inclWorkingHolidays = false ) { $ givenYear = $ lngDate -> format ( 'Y' ) ; $ daying = array_merge ( $ this -> setHolidaysOrthodoxEaster ( $ lngDate ) , $ this -> setHolidaysFixed ( $ lngDate ) ) ; if ( $ inclWorkingHolidays ) { $ daying = array_merge ( $ daying , $ this -> setHolidaysFixedButWorking ( $ lngDate ) ) ; } if ( $ inclCatholicEaster ) { // Catholic easter is already known by PHP $ firstEasterDate = strtotime ( $ this -> getEasterDatetime ( $ givenYear ) -> format ( 'Y-m-d' ) ) ; $ secondEasterDate = strtotime ( '+1 day' , $ firstEasterDate ) ; $ daying = array_merge ( $ daying , [ $ firstEasterDate , $ secondEasterDate , ] ) ; } sort ( $ daying ) ; return array_unique ( $ daying ) ; // remove duplicate for when catholic and orthodox easter match }
List of legal holidays

@param \DateTime $lngDate
@param boolean $inclCatholicEaster
@return array
List of legal holidays