setDisclosePublisher() 공개 메소드

public setDisclosePublisher ( boolean $disclosePublisher )
$disclosePublisher boolean
예제 #1
0
 /**
  * Create Subscription from SubscribeMessage
  *
  * @param Session $session
  * @param SubscribeMessage $msg
  * @return Subscription
  */
 public static function createSubscriptionFromSubscribeMessage(Session $session, SubscribeMessage $msg)
 {
     $options = $msg->getOptions();
     $subscription = new Subscription($msg->getTopicName(), $session, $options);
     if (isset($options->disclose_publisher) && $options->disclose_publisher === true) {
         $subscription->setDisclosePublisher(true);
     }
     return $subscription;
 }