GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 4615dc...1bf145 )
by Andreas
01:58
created

AbandonedCartApi   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaignApi\Api;
7
8
use CommerceLeague\ActiveCampaignApi\Client\CommonResourceClientInterface;
9
10
/**
11
 * Class AbandonedCartApi
12
 */
13
class AbandonedCartApi implements AbandonedCartApiResourceInterface
14
{
15
    /**
16
     * @var CommonResourceClientInterface
17
     */
18
    private $resourceClient;
19
20
    /**
21
     * @param CommonResourceClientInterface $resourceClient
22
     */
23
    public function __construct(CommonResourceClientInterface $resourceClient)
24
    {
25
        $this->resourceClient = $resourceClient;
26
    }
27
28
    /**
29
     * @inheritDoc
30
     */
31
    public function create(array $data): array
32
    {
33
        return $this->resourceClient->createResource('api/3/ecomOrders', [], $data);
34
    }
35
}
36