*/ 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:----bafiltH7fku7mQ0efGPy6OTvpXuoLzFtS0IV4i6NOKMK39e0dtogeKwT+JAWEWLVnf/YjXlzQblZ0YIY6X3/Haz70Mv+P6XcXWP6PFHK+UnOKYjg7H6RWUcgl08s/bzyoSUDlfp7Oskdv6DsfON4H1UxrJUAKquU55NKfmG6mgNNEDagklDeQ8E9WTdH6L7m3UhZXvdAKCEFtuWYQV7eRDPa7UgYCNsmniG4/pkzAG3QJNt4lhm6de/t0Ou5MtkBHxy1d6msmwCjtfT5naVrL44GMSHtrHJm0pxgWp7JagU3Mm5/5gml3S7epos14RTlK0f81KC6ieWNSH/AJykgR3Ur4ykKLbu3UJYXIcXafqJ63pkV805lb5nBhW6kN2VAsNatSlzW6MSh+PvxKSlYRr8mruyNCQSHZz/J6hgjOaI5nfQIycVOVMP+V2+71AsiOwbq+MYZ67cunyiphxxwCXuLWZ5te4T9pdgpw9/IGYzZ0kRVQugaLqp2qJ7sgOi5yhK0XhSuN10Li820y+zwCqtudGS1PyHbW8eo0Atc/ozUsfUpdfcZZ7WaRnp+QHaRImxLwmnJlkPJPt+zZE636flDcaSPcpDjrFnwjwNUBou/wIEN6PutPXpvGRxz2EDJ8TUog8xZy12+2cbbwahhk7RilXWbUSKDzZIh/m7xRfY=----ATTACHMENT:----MzM4NzkzMzQ0ODI0NjYyMyA2OTQwODU0MjUwOTc4MzM1IDY4Mzk5Mzg4Mzk5MTA2MTk=