src/Utility/StackedStates.php
public function push($type, $state = []) {
        if (isset($this->_defaults[$type])) {
            $state = array_merge($this->_defaults[$type], $state);
        }
        array_push($this->_states, [$type, $state]);
    }
public function push($type, $state = []) {
        if (isset($this->_defaults[$type])) {
            $state = array_merge($this->_defaults[$type], $state);
        }
        array_push($this->_states, [$type, $state]);
    }
public function push ( $ type , $ state = [ ] ) { if ( isset ( $ this -> _defaults [ $ type ] ) ) { $ state = array_merge ( $ this -> _defaults [ $ type ] , $ state ) ; } array_push ( $ this -> _states , [ $ type , $ state ] ) ; }
Push a new state, merging given values with the default
ones.

@param string $type Type of the new state.
@param mixed $sate New state.
Push a new state merging given values with the default ones .