| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class ErrorOutcome implements OutcomeInterface |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $message; |
||
| 11 | |||
| 12 | public function __construct(string $message) |
||
| 13 | { |
||
| 14 | $this->message = $message; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function getType(): string |
||
| 18 | { |
||
| 19 | return self::TYPE_ERROR; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function mustBeHandled(): bool |
||
| 23 | { |
||
| 24 | return true; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getContent(): string |
||
| 28 | { |
||
| 29 | return $this->message; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getDescription(): string |
||
| 35 | } |
||
| 36 | } |
||
| 37 |