LineResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 44
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMessage() 0 2 1
A getData() 0 2 1
A getStatus() 0 2 1
1
<?php
2
3
namespace Cryptommer\Smsir\Objects;
4
5
use Psr\Http\Message\StreamInterface;
6
7
class LineResponse {
8
    /**
9
     * @var int
10
     */
11
    public int $Status;
12
13
    /**
14
     * @var string
15
     */
16
    public string $Message;
17
18
    /**
19
     * @var int[]
20
     */
21
    public $Data;
22
23
    /**
24
     * @param $response
25
     */
26
    public function __construct($response) {
27
        $this->Status = $response['status'];
28
        $this->Message = $response['message'];
29
        $this->Data = $response['data'];
30
    }
31
32
    /**
33
     * @return int[]
34
     */
35
    public function getData(): array {
36
        return $this->Data;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getMessage(): string {
43
        return $this->Message;
44
    }
45
46
    /**
47
     * @return int
48
     */
49
    public function getStatus(): int {
50
        return $this->Status;
51
    }
52
}
53