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

Currencies::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
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