Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | abstract class Response |
||
6 | { |
||
7 | /** |
||
8 | * @var int|null |
||
9 | */ |
||
10 | protected $code = null; |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | protected $message = null; |
||
15 | |||
16 | /** |
||
17 | * Response constructor. |
||
18 | * |
||
19 | * @param int|null $code |
||
20 | * @param string|null $message |
||
21 | */ |
||
22 | public function __construct(?int $code, ?string $message) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return int|null |
||
30 | */ |
||
31 | public function getCode(): ?int |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return string|null |
||
38 | */ |
||
39 | public function getMessage(): ?string |
||
44 |