| 1 | <?php declare(strict_types = 1); |
||
| 8 | class TestTranslatableDomainErrorDomainEvent extends DomainEvent implements TranslatableDomainErrorEvent |
||
| 9 | { |
||
| 10 | public const TEST_ERROR_MESSAGE = 'test_error'; |
||
| 11 | public const TEST_ERROR_MESSAGE_PARAMS = ['foo' => 'bar']; |
||
| 12 | |||
| 13 | /** @var array */ |
||
| 14 | private $payload; |
||
| 15 | |||
| 16 | public function __construct(array $payload) |
||
| 21 | |||
| 22 | protected function setPayload(array $payload): void |
||
| 26 | |||
| 27 | public function payload(): array |
||
| 31 | |||
| 32 | public function getErrorMessage(): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array|mixed[] |
||
| 39 | */ |
||
| 40 | public function getErrorMessageParams(): array |
||
| 44 | } |
||
| 45 |