Completed
Push — fix-checkstyle ( 525678...700890 )
by
unknown
03:06
created

AbstractApi::setParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Akeneo\Crowdin\Api;
4
5
use Akeneo\Crowdin\Client;
6
7
/**
8
 * Abstract API
9
 *
10
 * @author Nicolas Dupont <[email protected]>
11
 */
12
abstract class AbstractApi implements ApiInterface
13
{
14
    /** @var Client */
15
    protected $client;
16
17
    /**
18
     * The method parameters
19
     *
20
     * @var array
21
     */
22
    protected $parameters = [];
23
24
    /**
25
     * Instantiate an API
26
     *
27
     * @param Client $client
28
     */
29
    public function __construct(Client $client)
30
    {
31
        $this->client = $client;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function setParameters(array $parameters)
38
    {
39
        $this->parameters = $parameters;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    abstract public function execute();
46
}
47