Offices   A
last analyzed

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 Offices
9
 *
10
 * @package Uon\Endpoints
11
 * @since   2.0
12
 */
13
class Offices extends Client
14
{
15
    /**
16
     * Get the list of all offices
17
     *
18
     * @link https://api.u-on.ru/{key}/company-office.{_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 = 'company-office';
27
28
        return $this->done();
29
    }
30
}
31