Completed
Push — master ( 0cf3e1...ba753f )
by Sergey
02:39
created

Negotiations   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A active() 0 4 1
A messages() 0 4 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi\EndPoints;
4
5
use seregazhuk\HeadHunterApi\Traits\HasAll;
6
use seregazhuk\HeadHunterApi\Traits\HasView;
7
8
class Negotiations extends Endpoint
9
{
10
    const RESOURCE = 'negotiations';
11
12
    use HasView, HasAll;
13
14
    public function active()
15
    {
16
        return $this->getResource('active');
17
    }
18
19
    /**
20
     * @param string $id
21
     * @return array
22
     */
23
    public function messages($id)
24
    {
25
        return $this->getResource($id . '/messages');
26
    }
27
}