Skip to content

Commit 19f1b18

Browse files
authored
Merge pull request #21 from resendlabs/add-client-contract
Add Client contract and remove Response contract
2 parents 18463b6 + 65b5798 commit 19f1b18

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

src/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Resend;
44

5+
use Resend\Contracts\Client as ClientContract;
56
use Resend\Contracts\Transporter;
67
use Resend\Service\ServiceFactory;
78

@@ -12,7 +13,7 @@
1213
* @property \Resend\Service\Domain $domains
1314
* @property \Resend\Service\Email $emails
1415
*/
15-
class Client
16+
class Client implements ClientContract
1617
{
1718
/**
1819
* The service factory instance.

src/Contracts/Client.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Resend\Contracts;
4+
5+
interface Client
6+
{
7+
//
8+
}

src/Contracts/Response.php

-15
This file was deleted.

0 commit comments

Comments
 (0)