ActionsWithDelete::delete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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