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