Delete   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
c 0
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete() 0 5 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