Completed
Push — master ( 49b16a...bbcd37 )
by Sergey
13:21
created

Api   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 4
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi;
4
5
use seregazhuk\HeadHunterApi\Adapters\GuzzleHttpAdater;
6
use seregazhuk\HeadHunterApi\EndPoints\EndpointsContainer;
7
8
class Api
9
{
10
    public function create($token = null)
11
    {
12
        $request = new Request(new GuzzleHttpAdater(), $token);
13
        $endpointsContainer = new EndpointsContainer($request);
14
        return new Client($endpointsContainer);
15
    }
16
}