Completed
Pull Request — master (#14)
by Sergey
02:30
created

Artifacts   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A portfolio() 0 4 1
A photos() 0 4 1
A editPhoto() 0 4 1
A deletePhoto() 0 4 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi\EndPoints;
4
5
class Artifacts extends Endpoint
6
{
7
    const RESOURCE = 'artifacts';
8
9
    public function photos()
10
    {
11
        return $this->getResource('photo');
12
    }
13
14
    public function portfolio()
15
    {
16
        return $this->getResource('portfolio');
17
    }
18
19
    public function editPhoto($id, $attributes)
20
    {
21
        return $this->putResource($id, $attributes);
22
    }
23
24
    public function deletePhoto($id)
25
    {
26
        $this->deleteResource($id);
27
    }
28
}