Api::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi;
4
5
use seregazhuk\HeadHunterApi\EndPoints\EndpointsContainer;
6
7
class Api
8
{
9
    /**
10
     * @param string|null $token
11
     * @return EndpointsContainer
12
     */
13
    public static function create($token = null)
14
    {
15
        $request = new Request($token);
16
17
        return new EndpointsContainer($request);
18
    }
19
20
    private function __clone()
21
    {
22
    }
23
24
    private function __construct()
25
    {
26
    }
27
}