Passed
Push — master ( 923478...ed53f8 )
by Steven
01:04 queued 10s
created

USExchanges   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getFullEndpoint() 0 4 1
1
<?php
2
3
namespace Digitonic\IexCloudSdk\ReferenceData;
4
5
use Digitonic\IexCloudSdk\Contracts\IEXCloud;
6
use Digitonic\IexCloudSdk\Requests\BaseGet;
7
8
class USExchanges extends BaseGet
9
{
10
    const ENDPOINT = 'ref-data/market/us/exchanges';
11
12
    /**
13
     * Create constructor.
14
     *
15
     * @param  IEXCloud  $api
16
     */
17 2
    public function __construct(IEXCloud $api)
18
    {
19 2
        parent::__construct($api);
20 2
    }
21
22
    /**
23
     * @return string
24
     */
25 1
    protected function getFullEndpoint(): string
26
    {
27 1
        return self::ENDPOINT;
28
    }
29
}
30