Finance   A
last analyzed

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 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPlatforms() 0 4 1
A getProducts() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Codenixsv\CoinGeckoApi\Api;
6
7
use Exception;
8
9
class Finance extends Api
10
{
11
    /**
12
     * @param array $params
13
     * @return array
14
     * @throws Exception
15
     */
16 1
    public function getPlatforms(array $params = []): array
17
    {
18 1
        return $this->get('/finance_platforms', $params);
19
    }
20
21
    /**
22
     * @param array $params
23
     * @return array
24
     * @throws Exception
25
     */
26 1
    public function getProducts(array $params = []): array
27
    {
28 1
        return $this->get('/finance_products', $params);
29
    }
30
}
31