src/AndFilter.php
public function filter(EventInterface $event)
    {
        $output = null;
        foreach ($this->filters as $filter) {
            $result = $filter->filter($event);
            if ($result === false) {
                return false;
            }
            if ($result === true) {
                $output = true;
            }
        }
        return $output;
    }
public function filter(EventInterface $event)
    {
        $output = null;
        foreach ($this->filters as $filter) {
            $result = $filter->filter($event);
            if ($result === false) {
                return false;
            }
            if ($result === true) {
                $output = true;
            }
        }
        return $output;
    }
public function filter ( EventInterface $ event ) { $ output = null ; foreach ( $ this -> filters as $ filter ) { $ result = $ filter -> filter ( $ event ) ; if ( $ result === false ) { return false ; } if ( $ result === true ) { $ output = true ; } } return $ output ; }
Filters events that pass all contained filters.

@param \Phergie\Irc\Event\EventInterface $event
@return boolean|null TRUE if the event passes all contained filters, FALSE
if it fails any filter, or NULL if all filters return NULL.
Filters events that pass all contained filters .