Response::setMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Cryptommer\Smsir\Objects;
4
5
use Psr\Http\Message\StreamInterface;
6
7
class Response {
8
9
    /**
10
     * @var String
11
     */
12
    public string $Status;
13
14
    /**
15
     * @var string
16
     */
17
    public string $Message;
18
19
    /**
20
     * @var BulkResponse|
21
     */
22
    public $Data;
23
24
    public function __construct(StreamInterface $response) {
0 ignored issues
show
Unused Code introduced by
The parameter $response is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

24
    public function __construct(/** @scrutinizer ignore-unused */ StreamInterface $response) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
26
    }
27
28
29
30
    /**
31
     * @param $Data
32
     */
33
    public function setData($Data): void
34
    {
35
        $this->Data = $Data;
36
    }
37
38
    /**
39
     * @return BulkResponse
40
     */
41
    public function getData() {
42
        return $this->Data;
43
    }
44
45
    /**
46
     * @param string $Message
47
     */
48
    public function setMessage(string $Message): void {
49
        $this->Message = $Message;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getMessage() {
56
        return $this->Message;
57
    }
58
59
    /**
60
     * @param String $Status
61
     */
62
    public function setStatus(string $Status): void {
63
        $this->Status = $Status;
64
    }
65
66
    /**
67
     * @return String
68
     */
69
    public function getStatus(): string {
70
        return $this->Status;
71
    }
72
73
}
74