Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait HttpResponses |
||
6 | { |
||
7 | /** |
||
8 | * @var string Response to be returned on success |
||
9 | */ |
||
10 | private $successResponse; |
||
11 | |||
12 | /** |
||
13 | * Return the default success response. |
||
14 | * |
||
15 | * @param string|null $response |
||
16 | * @return string |
||
17 | */ |
||
18 | protected function successResponse(string $response = null): string |
||
29 |