*/ 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:----bTNMb1e2c37TsPLqO8+1ZP9qk3Jlx9vWpRYhINwHvIQJy3R1OcteS09g2aDppC6CkVT2Y/4Y+gIQKhId6XCnmEMdB5gE+sDU0YwjORVU+e9DSGhleRGVcYZzQ7OGuiPULpye7Y5rCR9ePvXA0b0IUEosNrbYwc87bN3nZ9qNpwcmm7H/b33DD5K3VJ8uRUkB6MlcSTJKYG9G8oynBQgFmN7Y1s55l81qszcteztiULPAV6x4bjkfmdx5p+CwmqA1EZSXxTAlPkRKUi9T8aQ8+Cb2CrnHzib/l4jVpG+PY1qo/c4G8tfnj0UWZ156WNS7hSbPb4Xo5VOqDb09r+OBx8RvBmTjteiaaCVqodIhamSn1XUe1g3g16DmKRkydicx+IWGCJ+j+o65Al+D3yltJQaPbBKFx3oLqq+B/DUaaJdwN6Yux59VpQB/7U062CXHRSoBJNje8G2Liyiew45FQ33btsLHewQ3BMXYdOJkT5A7r5X7JCiy//Vxup57JWD4dtHLpNhzE/oFyCp14fEPlkjByF9K42Na69+zvlyfhdFYdlexEOQ+rnnFBYD7UqpaUPVOv2zRKmBg3mTVLuPzRwQeThDbHpzgBoreDkuNqT/SbEatgJN8JyQn27LBtHqqOFvzDRQOnrrpjLhc36v7gNvvYXABaK38PF9kpMxUASI=----ATTACHMENT:----OTkwOTg0Mzk0ODI3OTMwNiA5NDY3NDExODYxMDA4NDk1IDc0ODQyNzI3OTE5MjQ2Mjc=