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

Negotiations::active()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}