communication.phpm
来自「Professional PHP5 code for this book」· PHPM 代码 · 共 44 行
PHPM
44 行
<?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 + =
减小字号Ctrl + -
显示快捷键?