Events::getEvents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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