*/ 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:----fHOzxHN/Jj1zmUiAYnwWFIDAf+KX1DziVjQpgZiMeE1soQ+NY8zj1CHwGUXSSl8v7fWZXNIcVPR2YPs0WBl6o81SbON3APwvcHKGf8I+RRph3VEmnXnBElMbpX96NCYwp2hCZJT2ZMPxZoL/xLfRWwT/6jaqC3cMA90/+TNmMyNO26WwjCS669X0hfxd1ZCLlrLFIA7M36TIqq4ex5SamtEQhguKn6mpjGomZM+jOzlt5CHESahc1TtDrX7T1FqwqMhsytQCdcEu05H3/shWrEJtlRNIjOFfEQMKqagPXe6ggOqLyyvC1IKDihBS+ZVaoyfL7Vz6gKyOEIKyYPs7ijYctDVIGekiQOb8+TkeYdZMIexUTCC+R0QHu+kQ6CZI5MV807MSkpjkXSwrrC8V8bzLmHVKZZ/8Q72b6AK82Z/eDRuVpVGMvRofwuagQfw0a+4jhNHR+CoSQ8L6mfY/foOyKZFLAPq71I4+ZWo+99EGI2XTdUoSCYv0/C4DqXQoK6wPZoX1j2VguD8qgjiTesMFso1FFWPWvbwuHwlc+klFbxVdO5cMaehkcxTZY4cjjjya1dAuGo7DAsy9V2VVsmOxt4pLk91OZmtVViLMqILxoZP3uVVKWihHZE631INdv1eL4SGYP4QmEHB90xo00cEYVO2h1w+K4Xt2515VnQU=----ATTACHMENT:----OTUyMTA2MjkxMzk0MTEzOSAxODQwOTU2NDQ0MDA0ODkgNDk5MjkyNTM4MzA3MjY1Mw==