Delete::delete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Digikraaft\Mono\ApiOperations;
4
5
trait Delete
6
{
7
    use Request;
8
9
    /**
10
     * @param string $id Resource id
11
     * @return array|object
12
     * @throws \Digikraaft\Mono\Exceptions\InvalidArgumentException
13
     * @throws \Digikraaft\Mono\Exceptions\IsNullException
14
     */
15
    public static function delete(string $id)
16
    {
17
        $url = self::resourceUrl($id);
18
19
        return static::staticRequest('DELETE', $url);
20
    }
21
}
22