コード例 #1
0
ファイル: ConversationEvent.php プロジェクト: blast007/bzion
 /**
  * {@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'];
 }