Esempio n. 1
0
 /**
  * Fetch thread messages for user
  *
  * @param string $userId
  * @param mixed[] $conditions
  *
  * @return CursorInterface|MessageInstanceInterface[]
  */
 public function fetchMessagesFor($userId, array $conditions = [])
 {
     $conditions[Field::CHAN_ID] = $this->channel->getId();
     $conditions[Field::SUBER_NAME] = $this->service->getUserSubscriberId($userId);
     return $this->channel->fetch($conditions);
 }