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

Artifacts::deletePhoto()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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