Indexes   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 31
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndexes() 0 4 1
A getIndex() 0 4 1
A getList() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Codenixsv\CoinGeckoApi\Api;
6
7
use Exception;
8
9
class Indexes extends Api
10
{
11
    /**
12
     * @param array $params
13
     * @return array
14
     * @throws Exception
15
     */
16 1
    public function getIndexes(array $params = []): array
17
    {
18 1
        return $this->get('/indexes', $params);
19
    }
20
21
    /**
22
     * @param string $id
23
     * @return array
24
     * @throws Exception
25
     */
26 1
    public function getIndex(string $id): array
27
    {
28 1
        return $this->get('/indexes/' . $id);
29
    }
30
31
    /**
32
     * @return array
33
     * @throws Exception
34
     */
35 1
    public function getList(): array
36
    {
37 1
        return $this->get('/indexes/list');
38
    }
39
}
40