⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 communication.phpm

📁 Professional PHP5 code for this book
💻 PHPM
字号:
<?phpabstract class Communication {  protected $arRecipientCollection;  private $strMessage;    protected $strErrorMessage;  protected $errorCode;    abstract public function send();    public function __construct() {    $this->strMessage = "";  }    public function addRecipient($objRecipient, $strIdentifier = "") {    $strRecipient = $objRecipient->getStringRepresentation();    if (!$strIdentifier) {      $strIdentifier = $strRecipient;    };    $this->arRecipientCollection->addItem($objRecipient, $strIdentifier);  }  public function removeRecipient($strIdentifier) {    $this->arRecipientCollection->removeItem($strIdentifier);  }       protected function _setMessage($strMessage) {    $this->strMessage = $strMessage;  }    protected function _getMessage() {    return($this->strMessage);  }      public function getErrorMessage() {    return($this->strErrorMessage);  }  public function getErrorCode() {    return($this->errorCode);  }  }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -