| 1 | <?php declare(strict_types = 1); |
||
| 5 | abstract class AbstractMutationError implements ShowableMutationError |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $errorMessage; |
||
| 9 | |||
| 10 | /** @var array|mixed[] */ |
||
| 11 | protected $errorMessageParams; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $errorMessage |
||
| 15 | * @param array|mixed[] $errorMessageParams |
||
| 16 | */ |
||
| 17 | 6 | protected function __construct(string $errorMessage, array $errorMessageParams = []) |
|
| 22 | |||
| 23 | 5 | public function getErrorMessage(): string |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return array|mixed[] |
||
| 30 | */ |
||
| 31 | 3 | public function getErrorMessageParams(): array |
|
| 35 | } |
||
| 36 |