Visa::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Uon\Endpoints;
4
5
use Uon\Client;
6
7
class Visa extends Client
8
{
9
    /**
10
     * Get list of visa statuses
11
     *
12
     * @link https://api.u-on.ru/{key}/visa.{_format}
13
     *
14
     * @return null|object|\Uon\Interfaces\ClientInterface
15
     */
16
    public function all()
17
    {
18
        // Set HTTP params
19
        $this->type     = 'get';
20
        $this->endpoint = 'visa';
21
22
        return $this->done();
23
    }
24
}
25