src/Reporters.php
public function add($name, $reporter)
    {
        if (!is_object($reporter)) {
            throw new Exception("Error, reporter must be an object.");
        }
        $this->_reporters[$name] = $reporter;
    }
public function add($name, $reporter)
    {
        if (!is_object($reporter)) {
            throw new Exception("Error, reporter must be an object.");
        }
        $this->_reporters[$name] = $reporter;
    }
public function add ( $ name , $ reporter ) { if ( ! is_object ( $ reporter ) ) { throw new Exception ( "Error, reporter must be an object." ) ; } $ this -> _reporters [ $ name ] = $ reporter ; }
Adds a reporter

@param  string         $name     The reporter name.
@param  object         $reporter A reporter.
@return object|boolean The added reporter instance or `false` on failure.
Adds a reporter