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