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::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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