示例#1
0
 /**
  * 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();
 }
示例#2
0
 /**
  * Observer
  *
  * @param Pattern\Subject $errorHandler
  */
 public function update(Pattern\Subject $errorHandler)
 {
     $this->_adapter->send(self::SUBJECT, $errorHandler->getError());
 }
示例#3
0
 /**
  * Observer
  *
  * @param Pattern\Subject $errorHandler
  */
 public function update(Pattern\Subject $errorHandler)
 {
     $this->fp->fwrite($errorHandler->getError() . PHP_EOL);
 }
示例#4
0
 /**
  * Observer
  *
  * @param Pattern\Subject $errorHandler
  */
 public function update(Pattern\Subject $errorHandler)
 {
     $this->_pdo->exec(sprintf(self::SQL, $this->_table, $this->_col, $errorHandler->getError()));
 }