/** * Construct */ public function __construct($host = '', $port = null) { parent::__construct($host, $port); // use port as queue name $this->mq = Pms_Adaptor::queue(array('name' => $port)); $this->mq->addHandler(new Pms_Message_Handler()); $this->port = $port; }