, array): array|null $transport */ public function __construct( string $apiKey, string $baseUrl = HttpClient::DEFAULT_API_BASE_URL, mixed $transport = null, ) { $this->http = new HttpClient($apiKey, $baseUrl, $transport); $this->emails = new EmailsResource($this->http); $this->domains = new DomainsResource($this->http); $this->webhooks = new WebhooksResource($this->http); $this->templates = new TemplatesResource($this->http); $this->suppressions = new SuppressionsResource($this->http); } /** * @param array|null $body * @param array $headers * * @return array */ public function request(string $method, string $path, ?array $body = null, array $headers = []): array { return $this->http->request($method, $path, $body, $headers); } }