Completed
Push — master ( 5c6f77...9539a1 )
by Mr
25s queued 11s
created

Currencies   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 7 1
1
<?php
2
3
namespace Uon\Endpoints;
4
5
use Uon\Client;
6
7
/**
8
 * Class Currencies
9
 *
10
 * @package Uon\Endpoints
11
 * @since   2.0
12
 */
13
class Currencies extends Client
14
{
15
    /**
16
     * Get a list of currencies
17
     *
18
     * @link https://api.u-on.ru/{key}/currency.{_format}
19
     *
20
     * @return null|object|\Uon\Interfaces\ClientInterface
21
     */
22
    public function all()
23
    {
24
        // Set HTTP params
25
        $this->type     = 'get';
26
        $this->endpoint = 'currency';
27
28
        return $this->done();
29
    }
30
}
31