Events   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
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 30
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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