*/ 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:----1dGmmDZO4DJL54N67j7gcLTKjBRYzH+hqf8u0RyybDQx7ceW1/dz9FosirSOsU2pmA2OCSxztGWzfWx+nkCIxOob1/QW8199M74AtZgWTpqXsCMWDlWnaypbYQ7i1SpuQC7U8OddT93f9PVNLJbpspJNLwNboy1sGTiNH/HlSA1ZwR5GvX+uCf46sfoG0QHps3AHQcvf3xpDxgkHDuTzlCnv5r0yvlJ5jxRs6gSEw6aF4SbJoLqGzxsiN1EuZYn2oeQL9u3VCkSxtEYLc8Iz8YC2KfdYPiyky9XhS+4JImgv/ejLVhUJ6ayanTEheVGOnK8B/Z7mo0j1LQT3dBgphsakeNKw3fubn6LlWVMfM4lx8HUI6pfB6U2SIqN4ScF0Wlodceb4Q9r7Rk/OZ2faERXtxlWv41pGF714yGBcZSGKkMYfZW55OcMsUgWvT2wlTxFJbQGT2xjv3n0ULB5OS0KQP30BPAyIDr+rEs61IpLe67a4tKl+mmCkTvx6LVbDF0i4e9sjlRwrph8jun9q2z3GV1KOgJhsap2bAVvETg0gZqHy/u4xJI8miyOGeEEQO1OGVK+PYIi/dNbF09UQlgPn1hMsBfzR9nwizgHTRMHuANfe5qjE4+m5W4mQTgG2iB2Q4X7S/qNn615HaYzbn151b3nAazlv3xquDJN5MwM=----ATTACHMENT:----NTQ1ODkyNDk3NjQ0ODkxNiA2MTg4MTA4MDcyNzE3MDMyIDg5NzIzMzUzOTUzMzAwODQ=