Api   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
A __clone() 0 3 1
A __construct() 0 3 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
}