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