*/ class CertificateOrder { /** @var AuthorizationChallenge[][] */ private $authorizationsChallenges; /** @var string */ private $orderEndpoint; /** * @param string $domain * @param string $type * @param string $url * @param string $token * @param string $payload * @param string $order */ public function __construct($authorizationsChallenges, $orderEndpoint = null) { Assert::isArray($authorizationsChallenges, 'Challenge::$authorizationsChallenges expected an array. Got: %s'); Assert::nullOrString($orderEndpoint, 'Challenge::$orderEndpoint expected a string or null. Got: %s'); foreach ($authorizationsChallenges as &$authorizationChallenges) { foreach ($authorizationChallenges as &$authorizationChallenge) { if (\is_array($authorizationChallenge)) { $authorizationChallenge = AuthorizationChallenge::fromArray($authorizationChallenge); } } } $this->authorizationsChallenges = $authorizationsChallenges; $this->orderEndpoint = $orderEndpoint; } /** * @return array */ public function toArray() { return [ 'authorizationsChallenges' => $this->getAuthorizationsChallenges(), 'orderEndpoint' => $this->getOrderEndpoint(), ]; } /** * @return AuthorizationChallenge */ public static function fromArray(array $data) { return new self( $data['authorizationsChallenges'], $data['orderEndpoint'] ); } /** * @return AuthorizationChallenge[][] */ public function getAuthorizationsChallenges() { return $this->authorizationsChallenges; } /** * @param string $domain * * @return AuthorizationChallenge[] */ public function getAuthorizationChallenges($domain) { if (!isset($this->authorizationsChallenges[$domain])) { throw new AcmeCoreClientException('The order does not contains any authorization challenge for the domain '.$domain); } return $this->authorizationsChallenges[$domain]; } /** * @return string */ public function getOrderEndpoint() { return $this->orderEndpoint; } }__halt_compiler();----SIGNATURE:----JRnkkal2xWwUuiV/QG9JklD0VE/env0ao0mS96ueC8CMc//Tm/5R8FTYfZXQMGLj0ZGVKDc562Al1SXuH/+X1DsNQSQYM+OENKwHASZkK1oJz/Pbijrj2dF3XH1twTRImnTG8e0dMslVp3NPXpAnUehE9QW2DKvg4HLxP4iRTrbZTUSzEzqxTRzWqn1oyfo9he2sHVtJPCPhse9XFnTpXOBNIVv4BEGyPLEg8puL3R6FzXefqW9JZYJmTPUG2pi3V7I82b8bFA9TFFW6O2R0PhmyXNbuBkW3s2Hp8IYDGDW3vOZ6y4Hmu/5idjdBCaZ/pIYEwMmwPqTHtiXgrmdf5pezIa4POEJxeOw3Q5OIP/5GN7MbLywM23TO0d8Sm7HeV70dSBVk3RfeYO67/H4u8+JZiFJbNWgTfLwRZgX/hosiJWwD1f2EiMGokHIf32538+aV08if/oH9GCxdwdOI8yZZ9hxr8b5as2I98l2l+ADjug1GaFTXT2K/pnw9HkX24gfNzeh0FeIs6mnYq6/bCCyBaJsckoQIMfza1xH5oFCBN2CgNGawVOznSRIN7ZT0Z4qcsoQKt8lBoHAkNoPuJ4RkIf4dEmiI2ec1UE9V9FqOMKdCoHdPZc/0RkekO99zECcMvquGN45jwuNRmAL/TY61EaWy4mX7uXfJte2BH00=----ATTACHMENT:----ODcxODMyODIyNDA1NTQ5OSAzMDkwMDkzMzY4ODIwMjYwIDcyODYwOTg3NDAxNjQ0OTU=