Esempio n. 1
0
 /**
  * Serialize function.
  *
  * @return array
  */
 public function __sleep()
 {
     $result = parent::__sleep();
     $result[] = '_completed';
     $result[] = '_events';
     return $result;
 }
Esempio n. 2
0
 /**
  * Tries to find an associated response for the given message.
  *
  * @param IncomingMessage $message Message sent by asterisk
  *
  * @return \Pastum\Component\PAMI\Message\Response\ResponseMessage
  */
 protected function findResponse(IncomingMessage $message)
 {
     $actionId = $message->getActionId();
     if (isset($this->incomingQueue[$actionId])) {
         return $this->incomingQueue[$actionId];
     }
     return false;
 }