* @license PHP License * @package Wombat * @subpackage MailMime */ /** * WBMail_Mime_Processor_Observable * * * * @version 0.1.0 * @package Wombat * @subpackage MailMime */ class WBMail_Mime_Processor_Observable extends WBStdClass { /** * * @var WBObserver */ protected $observer; /** * Current message * @var string */ protected $msg = ''; /** * Set observer object * @param WBObserver */ public function setObserver($observer) { $this->observer = $observer; } public function inform($msg) { $this->msg = $msg; $this->observer->update($this); } public function getMsg() { return $this->msg; } }