Completed
Push — master ( b098fd...df861b )
by Sergey
02:30
created

Negotiations   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

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