예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function assignResult($event)
 {
     parent::assignResult($event);
     if ($this->type === null) {
         throw new Exception("A message cannot be represented by the ConversationEvent class.");
     }
     $this->event = unserialize($event['message']);
 }
예제 #2
0
파일: Message.php 프로젝트: allejo/bzion
 /**
  * {@inheritdoc}
  */
 protected function assignResult($message)
 {
     parent::assignResult($message);
     if ($this->type !== null) {
         throw new Exception("A conversation event cannot be represented by the Message class.");
     }
     $this->player_from = $message['player_from'];
     $this->message = $message['message'];
 }