public function append(FilterChain $chain)
    {
        $priorities = array_keys($this->filters);
        if (count($priorities)) {
            $priority = max(array_keys($this->filters)) + 1;
        } else {
            $priority = 0;
        }
        $filters = $chain->getFilters();
        foreach ($filters as $filter) {
            $this->add($filter, $priority);
        }
        return $this;
    }
public function append(FilterChain $chain)
    {
        $priorities = array_keys($this->filters);
        if (count($priorities)) {
            $priority = max(array_keys($this->filters)) + 1;
        } else {
            $priority = 0;
        }
        $filters = $chain->getFilters();
        foreach ($filters as $filter) {
            $this->add($filter, $priority);
        }
        return $this;
    }
public function append ( FilterChain $ chain ) { $ priorities = array_keys ( $ this -> filters ) ; if ( count ( $ priorities ) ) { $ priority = max ( array_keys ( $ this -> filters ) ) + 1 ; } else { $ priority = 0 ; } $ filters = $ chain -> getFilters ( ) ; foreach ( $ filters as $ filter ) { $ this -> add ( $ filter , $ priority ) ; } return $ this ; }
Append filters from another filter chain

@param FilterChain $chain
@return FilterChain
Append filters from another filter chain