for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AcquiaCloudApi\Response;
/**
* @template-extends \ArrayObject<int, \AcquiaCloudApi\Response\DomainResponse>
*/
class DomainsResponse extends \ArrayObject
{
* @param array<object> $domains
public function __construct(array $domains)
parent::__construct(
array_map(
static function ($domain) {
return new DomainResponse($domain);
},
$domains
),
self::ARRAY_AS_PROPS
);
}