public function decryptUserPrivateInfo() { if ($this->cypher && $this->keyName) { $info = Crypto::decryptInfo($this->cypher, $this->keyName); $this->firstName = isset($info["firstName"]) ? $info["firstName"] : null; $this->lastName = isset($info["lastName"]) ? $info["lastName"] : null; $this->addressLine1 = isset($info["adressLine1"]) ? $info["adressLine1"] : null; $this->addressLine2 = isset($info["adressLine2"]) ? $info["adressLine2"] : null; $this->postalCode = isset($info["postalCode"]) ? $info["postalCode"] : null; $this->phoneNumber1 = isset($info["phoneNumber1"]) ? $info["phoneNumber1"] : null; $this->phoneNumber2 = isset($info["phoneNumber2"]) ? $info["phoneNumber2"] : null; } }