| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 { |
||
| 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 { |
||
| 62 | } |
||
| 63 | |||
| 64 | } |
||
| 65 |