Skip to content

Commit db7b204

Browse files
Lucas MichotGabrielAnca
andauthored
Abstract to IntercomResources. (#297)
* Abstract to IntercomResources. * Fix comment. Co-authored-by: Gabriel Anca Corral <GabrielAnca@users.noreply.github.com>
1 parent 222bdec commit db7b204

15 files changed

Lines changed: 36 additions & 239 deletions

src/IntercomAdmins.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomAdmins
8+
class IntercomAdmins extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomAdmins constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Returns list of Admins.
2812
*

src/IntercomBulk.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomBulk
8+
class IntercomBulk extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomBulk constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates Users in bulk.
2812
*

src/IntercomCompanies.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomCompanies
8+
class IntercomCompanies extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomCompanies constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates a Company.
2812
*

src/IntercomConversations.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomConversations
8+
class IntercomConversations extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomConversations constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Returns list of Conversations.
2812
*

src/IntercomCounts.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomCounts
8+
class IntercomCounts extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomCounts constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Returns list of Counts.
2812
*

src/IntercomCustomers.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomCustomers
8+
class IntercomCustomers extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomCustomers constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Search Customers
2812
*

src/IntercomEvents.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomEvents
8+
class IntercomEvents extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomEvents constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates Event.
2812
*

src/IntercomLeads.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomLeads
8+
class IntercomLeads extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomLeads constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates Lead.
2812
*

src/IntercomMessages.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomMessages
8+
class IntercomMessages extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomMessages constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates Message.
2812
*

src/IntercomNotes.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@
55
use Http\Client\Exception;
66
use stdClass;
77

8-
class IntercomNotes
8+
class IntercomNotes extends IntercomResource
99
{
10-
11-
/**
12-
* @var IntercomClient
13-
*/
14-
private $client;
15-
16-
/**
17-
* IntercomNotes constructor.
18-
*
19-
* @param IntercomClient $client
20-
*/
21-
public function __construct(IntercomClient $client)
22-
{
23-
$this->client = $client;
24-
}
25-
2610
/**
2711
* Creates Note.
2812
*

0 commit comments

Comments
 (0)