Passed
Push — master ( 3cbbeb...011897 )
by Victor Hugo
13:58
created

CurrencySupportEndpoint::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace VictorAvelar\Fixer\Endpoints;
4
5
use VictorAvelar\Fixer\Contracts\ExecutorInterface;
6
use VictorAvelar\Fixer\FixerHttpClient;
7
8
class CurrencySupportEndpoint extends AbstractEndpoint implements ExecutorInterface
9
{
10
    /**
11
     * Method to perform requests to this endpoint.
12
     */
13
    const REQUEST_METHOD = "GET";
14
15
    /**
16
     * Endpoint path.
17
     *
18
     * @var string
19
     */
20
    protected $path = "symbols";
21
22
    /**
23
     * CurrencySupportEndpoint constructor.
24
     *
25
     * @param FixerHttpClient $client
26
     */
27
    public function __construct(FixerHttpClient $client)
28
    {
29
        parent::__construct($client);
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function execute()
36
    {
37
        return $this->client->request(
38
            self::REQUEST_METHOD,
39
            $this->path
40
        );
41
    }
42
}
43