*/ 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:----AAojjXOnXd1G6MnwfzG/8P3Y9R14Tli/WiYaCE4yl+AY1U4A1qy7cynjkEZTlWSZYstH1ULk0SNTH/fDVFe2q0onznm1Ome9VqV8ouNud4Oli9AQwCsYUw/NL9+8p3xexeFfPyJ6ufbVA8QwsbEaWc+gxj1wh1BftoxT9XbKKgfkTu06r12tJ1yCNaegcyW+Tlm71d8NQ0zkk74dlCqyTrRdUC+wUuGrBMRQ0A0RUn6hG7jwskSndz81vw7AnB2IM+si/eM2tFliDcKRKUB8qjs25zt2Xlzro4j3t3kz6O9icZaX0Pd3LCzc1mInvr0kdXpk3wbfmHhRXOpLtPa3XRKVeRacgajGxjzwTwzF6cr2ekncDAXz0j+5nULV6JBF2ZoXANo1cSNhz1ZinKGR4xY1LLAzMTuSqkaPOMOyeyiL0bKKTkkj2k0HxB1qLS4YVszPQhMp+lPgC62rvLPgLflTUMu4UL7K2H2FH3oYAAIX0U4mcsfmb4EYlA6OewCno0EBcHkH1QiajpupbZMHy6FjFK7t0M8Lf2Z3o2ttNGg/qxj5oDeYFzAUBCZ+IPKKqzlITpMvtbd+5oy1TJYcH9P8aX9FjcolommhuS5kGzi2Y32D1qArBoo/f26Ge5gAkNmniv+X/doeYXacoAUuHoah5+PxOAS5jRcaqdPJNrY=----ATTACHMENT:----NTA3MjU3OTczNjA0MDU0OCAzNjUzNDM1MTkyOTQ2NDczIDgzNjc3Nzk1NDI2NDMzMTc=