*/ 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:----T4hwzjkk+9uQ3VbmJyMQ2c27ncLuGTxQkSZU2zfsYi/0iTSANAccbqmqXNPWjA5Qo0J2NUZBtA+Lz2dSFUdjlDbNfLUEBYyDoPBarQmPBTSXdeNtMAbX70LDaLnrA3DHLEnUhiwvTkMjLTOBDN2GWVtNbJgeNy2uYD9ur6tk8iIpv24CLAhpPSV2uTKVCSOWWbOh/M1M7P16+DmqV+EbGsiA/EP3GijILGptF4Qs9OP/NLENaxZAgpmPb+dVPIDiad/oYrJND30l2mq38j7MUGv+hOsduPhIVqRpd8yqEoi7zQ4cs4mmzCrX66C6BK3uZU7werAX4iOf2+tqTx6TVoyRwTLSV24r/daTVbxAw03iXbtcxOJOZkZmlsxuJr8xVdoAKaGw2wD1GJ4XekyYqbA98S9C2RJ8iK4YubMUjG9nLYvw+0MIzQ5a9tC0F+mGJMjcnwD8WpL49n+QpguFrhXnN7CyitYhvAdyFxBClt0sn4R4bZrjerW6EMt/LjjDUsIPsCasM4E0/VHi4R/PtiPMTv3x0uhV4FRBXaQElUP41Z9jDCqI9kmcN/Ao0Uvy/WxXD1J5va+v2jqtCDFQFy6eP5Y9aeEAXgESrXUjOCKBfjeiZlMp9bqt+SZ+4u61j+KbMHefgJUVuWnKAmaIdiOMBUVrvrIx+GpojW8hPuo=----ATTACHMENT:----NjI2MjY5ODYyNDUwNDk0MCAxOTQ3MzU2MDEyNTk4NTk2IDU3Mjg5NjM4NzMyMjAyNTU=