00001 <?php 00002 00003 /* 00004 * This file is part of the PEIP package. 00005 * (c) 2010 Timo Michna <timomichna/yahoo.de> 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00022 abstract class PEIP_ABS_Discarding_Message_Handler 00023 extends PEIP_ABS_Reply_Producing_Message_Handler { 00024 00025 protected $discardChannel; 00026 00027 00033 public function setDiscardChannel(PEIP_INF_Channel $discardChannel){ 00034 $this->discardChannel = $discardChannel; 00035 } 00036 00037 00042 public function getDiscardChannel(){ 00043 return $this->discardChannel; 00044 } 00045 00046 00052 protected function discardMessage(PEIP_INF_Message $message){ 00053 if(isset($this->discardChannel)){ 00054 $this->discardChannel->send($message); 00055 } 00056 } 00057 00058 } 00059