| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Response |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $currentStage; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string|null |
||
| 18 | */ |
||
| 19 | private $nextStage; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string|null |
||
| 23 | */ |
||
| 24 | private $message; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Response constructor. |
||
| 28 | * @param string $currentStage |
||
| 29 | * @param string|null $nextStage |
||
| 30 | * @param string|null $message |
||
| 31 | */ |
||
| 32 | 4 | public function __construct(string $currentStage, ?string $nextStage, ?string $message = null) |
|
| 33 | { |
||
| 34 | 4 | $this->currentStage = $currentStage; |
|
| 35 | 4 | $this->nextStage = $nextStage; |
|
| 36 | 4 | $this->message = $message; |
|
| 37 | 4 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getCurrentStage(): string |
||
| 43 | { |
||
| 44 | return $this->currentStage; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string|null |
||
| 49 | */ |
||
| 50 | 4 | public function getNextStage(): ?string |
|
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string|null |
||
| 57 | */ |
||
| 58 | 4 | public function getMessage(): ?string |
|
| 61 | } |
||
| 62 | } |