*/ 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:----dVSZenRO/vViBbc/GYNoIu5h5lPYVniCjfamQFQEfLdfDoFqo+icowgURyGAnBNUIbleN0TSyeAsReMoxYFvqeagW3YJztnxFG/ks2zvunqLwMiwsfXefzhsvcvLKOOaS/L7Ivjh5Lw4GyIzGvf4gkouUknppfe6kchXdjy7vPhkWIQGz/GiA3fgBe8qDjldUaW+LM6Hdsg4fw19LcaEGO+6gn5Kwtlywx5WnN6nCVBUGYBgmsnfbWVfnB7tvHOyJZpx09xMWoYHn1S6tbjIcYAkDxg4w/couZd2EYZWcUG4DwtjWC2h78BuoBs3sRMtGX2SjJWnChhOC92WCbxD59GW4mf077N5Gw2yPUtD3PAulmMbbLnWOuw5Niyekd4elfXmwMIKFjfc5D7Mewe+UkxL0NHIyGzm0uEV7HVQ+v6ulRxkZGXZLQpShVXxuyIQqveu4myL1DJFCDCJEIHtpHpTuimv2RXM2C6yvfsBgz+SbYJ9cxaGWCk7/ESpXrghtHLA/nEZmGJpcPSf9Tz7eka1ny6OZioiIW6+zmcbMM4mVqqZF55sKuD3PoujRL5wvKYtJcsDd0RK8jMOtjIYhBRPzyJlup1yu8rb9/3Xdqo3Fs4pvqEWHU/W4M7FR77FB9fiYe73ugBP0hUnflyiR2EsHv/miVhuLRzAP6Fsi+Y=----ATTACHMENT:----NDQwOTQ5OTkzNzUyMjEwNCA1NjYzNzc5MTQ0MjY3MTk5IDE1MTk4NjE1NDg1ODYzODc=