Passed
Push — main ( 01449a...f97206 )
by Evgenii
02:10
created

CustomRequest::setDeviceUUID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
4
namespace floor12\MindBox\Requests;
5
6
7
class CustomRequest extends MindBoxRequest
8
{
9
    /**
10
     * @param string|null $operationName
11
     * @param array|null $body
12
     * @param int|null $mode
13
     * @param string|null $deviceUUID
14
     */
15 5
    public function __construct(
16
        string $operationName = null,
17
        array $body = null,
18
        int $mode = null,
19
        string $deviceUUID = null)
20
    {
21 5
        $this->operationName = $operationName;
22 5
        $this->body = $body;
23 5
        $this->mode = $mode;
24 5
        $this->deviceUUID = $deviceUUID;
25 5
    }
26
27
    /**
28
     * @param mixed $operationName
29
     */
30
    public function setOperationName($operationName): void
31
    {
32
        $this->operationName = $operationName;
33
    }
34
35
    /**
36
     * @param array $body
37
     */
38 1
    public function setBody(array $body): void
39
    {
40 1
        $this->body = $body;
41 1
    }
42
43
44
}
45