ActionsWithDelete   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace CdekSDK2\Actions;
6
7
use CdekSDK2\Http\ApiResponse;
8
9
/**
10
 * Class ActionsWithDelete
11
 * @package CdekSDK2\Actions
12
 */
13
class ActionsWithDelete extends Action
14
{
15
    /**
16
     * Запрос на удаление по uuid
17
     * @param string $uuid
18
     * @return ApiResponse
19
     * @throws \CdekSDK2\Exceptions\RequestException
20
     */
21
    public function delete(string $uuid): ApiResponse
22
    {
23
        $response = $this->http_client->delete($this->slug($uuid));
24
        return $response;
25
    }
26
}
27