*/ class CertificateOrder { /** @var AuthorizationChallenge[][] */ private $authorizationsChallenges; /** @var string */ private $orderEndpoint; /** @var string */ private $status; public function __construct( array $authorizationsChallenges, ?string $orderEndpoint = null, ?string $status = null, ) { foreach ($authorizationsChallenges as &$authorizationChallenges) { foreach ($authorizationChallenges as &$authorizationChallenge) { if (\is_array($authorizationChallenge)) { $authorizationChallenge = AuthorizationChallenge::fromArray($authorizationChallenge); } } } $this->authorizationsChallenges = $authorizationsChallenges; $this->orderEndpoint = $orderEndpoint; $this->status = $status; } public function toArray(): array { $authorizationsChallenges = array_map( function ($challenges): array { return array_map( function ($challenge): array { return $challenge->toArray(); }, $challenges ); }, $this->getAuthorizationsChallenges() ); return [ 'authorizationsChallenges' => $authorizationsChallenges, 'orderEndpoint' => $this->getOrderEndpoint(), 'status' => $this->getStatus(), ]; } public static function fromArray(array $data): self { return new self($data['authorizationsChallenges'], $data['orderEndpoint']); } /** * @return AuthorizationChallenge[][] */ public function getAuthorizationsChallenges() { return $this->authorizationsChallenges; } /** * @return AuthorizationChallenge[] */ public function getAuthorizationChallenges(string $domain): array { if (!isset($this->authorizationsChallenges[$domain])) { throw new AcmeCoreClientException('The order does not contains any authorization challenge for the domain '.$domain); } return $this->authorizationsChallenges[$domain]; } public function getOrderEndpoint(): string { return $this->orderEndpoint; } public function getStatus(): string { return $this->status; } }__halt_compiler();----SIGNATURE:----jsrNpIjcXmZ9ymx8/ChJeK/wK1ASGLD8ndad3QKTyDhlvxbMtpY2b/lCoVMnBaKe60+zJCezNm9A/tJyGDvh1kR8nHR6AMbCAXAqhmKE6Xs6mCsajpKdRoU9UpzAb7V2C2t9PbNB/Yz0gRCg17YKpsVl5GXMASGJlAi0SiAMY0bKWTaAFDRRrZEvD8d9rGTDyGxFtIU5/VUIzCOIEEDMjQMWzlrpSlFNhZkDbCYNdaxqFfSq/KEE6Vb31roI4TYIYgQVqU9MJQv9wzU7WdmssURdfcbxlc8LiTUZ7A3e9Bk9qL/DG8paJdB5tTyr+wGKctSL2YrL5ccpEfNSzKBUgBmvZfemZvpgeWncQgBiXQYfM20iVm6H2zzDF3EgxOI/No4Eigvg/CY6QW/7bvXSEhyUq8UQFmiZbpzTOfXeNvBc7WbG262OZcVp+PKNLVPHv4qIQnhmjbOLHhXZ5kn0Ze/trZAJbJEXMoR9Tz798SEWYf4OUAJJT52PqzAVRHQyBinv33WeUeFkMrP7WOhf2+7U/uqIe87enXuK23HZwIVXpElJtGF0bY6tBvnpP7p/KW224LP6Aol6uj0tA5X4lILssxeTlmj4zK9N872X4l1lyfw+/XXhd1xZRwzuvJuC2Hs3KI/7C4FqlIj6JIDjQZLRnebxCMElgjbJivB6NJc=----ATTACHMENT:----MjQzMDk2MzI1MjE1NTY5OCAxMjQ2OTU2MDk5NTU4MzUxIDU0NjE2ODk1MzkwOTIzNTY=