Completed
Push — master ( febf69...7d4223 )
by Sergey
04:50 queued 02:23
created

Auth   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A refreshToken() 0 9 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi\EndPoints;
4
5
class Auth extends Endpoint
6
{
7
    const RESOURCE = 'oauth';
8
9
    /**
10
     * @param string $token
11
     * @return array
12
     */
13
    public function refreshToken($token)
14
    {
15
        $params = [
16
            'grant_type'    => 'refresh_token',
17
            'refresh_token' => $token,
18
        ];
19
20
        return $this->postResource('', $params);
21
    }
22
}
23