/** * Observer * * @param Pattern\Subject $errorHandler */ public function update(Pattern\Subject $errorHandler) { if ($this->exception) { throw new \RuntimeException("Mock generated an exception"); } $this->message = $errorHandler->getError(); }
/** * Observer * * @param Pattern\Subject $errorHandler */ public function update(Pattern\Subject $errorHandler) { $this->_adapter->send(self::SUBJECT, $errorHandler->getError()); }
/** * Observer * * @param Pattern\Subject $errorHandler */ public function update(Pattern\Subject $errorHandler) { $this->fp->fwrite($errorHandler->getError() . PHP_EOL); }
/** * Observer * * @param Pattern\Subject $errorHandler */ public function update(Pattern\Subject $errorHandler) { $this->_pdo->exec(sprintf(self::SQL, $this->_table, $this->_col, $errorHandler->getError())); }