Completed
Push — master ( 92e92f...393815 )
by Sergey
02:33
created

Me   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 1
cbo 2
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A info() 0 4 1
A inSearch() 0 4 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi\EndPoints;
4
5
class Me extends Endpoint
6
{
7
    const RESOURCE = 'me';
8
9
    public function info()
10
    {
11
        return $this->request->get(self::RESOURCE);
12
    }
13
14
    /**
15
     * @param bool $val
16
     */
17
    public function inSearch($val = true)
18
    {
19
        $this->request->post(self::RESOURCE, ['is_in_search'=>$val]);
20
    }
21
}