コード例 #1
0
ファイル: ChannelOptions.php プロジェクト: ably/ably-php
 /**
  * Transforms `cipher` from array to CipherParams, if necessary
  */
 public function __construct($options = [])
 {
     parent::__construct($options);
     if (is_array($this->cipher)) {
         $this->cipher = Crypto::getDefaultParams($this->cipher);
     }
 }
コード例 #2
0
ファイル: AuthOptions.php プロジェクト: ably/ably-php
 public function __construct($options = [])
 {
     parent::__construct($options);
     if (empty($this->tokenDetails) && !empty($this->token)) {
         $this->tokenDetails = new TokenDetails($this->token);
     }
 }