private function setHolidayForState(&$holidays, $day, $state, $name)
    {
        // Exists?
        if (! array_key_exists($day, $holidays)) {
            // Initialized as State Holiday
            $holidays[$day] = $this->createData($name, []);
        }
        // Is a state holiday?
        if (is_array($holidays[$day]['states'])) {
            // Include Current State
            $holidays[$day]['states'][] = $state;
        }
    }
private function setHolidayForState(&$holidays, $day, $state, $name)
    {
        // Exists?
        if (! array_key_exists($day, $holidays)) {
            // Initialized as State Holiday
            $holidays[$day] = $this->createData($name, []);
        }
        // Is a state holiday?
        if (is_array($holidays[$day]['states'])) {
            // Include Current State
            $holidays[$day]['states'][] = $state;
        }
    }
private function setHolidayForState ( & $ holidays , $ day , $ state , $ name ) { // Exists? if ( ! array_key_exists ( $ day , $ holidays ) ) { // Initialized as State Holiday $ holidays [ $ day ] = $ this -> createData ( $ name , [ ] ) ; } // Is a state holiday? if ( is_array ( $ holidays [ $ day ] [ 'states' ] ) ) { // Include Current State $ holidays [ $ day ] [ 'states' ] [ ] = $ state ; } }
Set Holiday for State

This method was created because Brazilian national holidays may conflict with state holidays. For example,
"2017-06-15" is a national variable holiday called "Corpus Christi", and is an Acre state fixed holiday called
"Aniversário do Estado". In these cases, national holiday will be consider more important.

@param  array  $holidays Holidays Dataset
@param  string $day      Day
@param  string $state    State Name
@param  string $name     Holiday Name
Set Holiday for State