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

CurrencySupportEndpoint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A execute() 0 5 1
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