ReceiveData::getNumber()   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 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Cryptommer\Smsir\Objects;
4
5
use Psr\Http\Message\StreamInterface;
6
7
class ReceiveData {
8
9
    /**
10
     * @var int
11
     */
12
    public int $Mobile;
13
14
    /**
15
     * @var String
16
     */
17
    public string $MessageText;
18
19
    /**
20
     * @var int
21
     */
22
    public int $Number;
23
24
    /**
25
     * @var int
26
     */
27
    public int $ReceivedDateTime;
28
29
    public function __construct(StreamInterface $response) {
30
        $this->Mobile = $response['mobile'];
31
        $this->MessageText = $response['messageText'];
32
        $this->Number = $response['number'];
33
        $this->ReceivedDateTime = $response['receivedDateTime'];
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getMobile(): int {
40
        return $this->Mobile;
41
    }
42
43
    /**
44
     * @return String
45
     */
46
    public function getMessageText(): string {
47
        return $this->MessageText;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function getNumber(): int {
54
        return $this->Number;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getReceivedDateTime(): int {
61
        return $this->ReceivedDateTime;
62
    }
63
64
}
65