Esempio n. 1
0
 /**
  * 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);
     }
 }
Esempio n. 2
0
 public function __construct($options = [])
 {
     parent::__construct($options);
     if (empty($this->tokenDetails) && !empty($this->token)) {
         $this->tokenDetails = new TokenDetails($this->token);
     }
 }