| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class Refusals |
||
| 8 | { |
||
| 9 | private $errorMessages = []; |
||
| 10 | |||
| 11 | /** @return string[] */ |
||
| 12 | public function for(CorrelationId $theRequest): array |
||
| 13 | { |
||
| 14 | // return ['Cannot open account for unknown entity']; |
||
| 15 | return $this->errorMessages[$theRequest->id()] ?? []; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function addFor(CorrelationId $theRequest, string $message): void |
||
| 21 | } |
||
| 22 | } |
||
| 23 |