challenge = $challenge; $this->identifier = $identifier; $this->otp = $otp; } public function getChallenge(): ?string { return $this->challenge; } public function getIdentifier(): ?string { return $this->identifier; } public function getOtp(): ?string { return $this->otp; } public static function fromArray(array $array = []): AuthenticationChallenge { $challenge = $array['challenge'] ?? null; $identifier = $array['identifier'] ?? null; $otp = $array['otp'] ?? null; return new AuthenticationChallenge($challenge, $identifier, $otp); } }