| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface |
||
| 13 | { |
||
| 14 | private string $channel; |
||
| 15 | |||
| 16 | 1 | public function __construct(string $channel, int $code = 0, Throwable $previous = null) |
|
| 17 | { |
||
| 18 | 1 | $message = "Queue channel \"$channel\" is not properly configured."; |
|
| 19 | 1 | $this->channel = $channel; |
|
| 20 | 1 | parent::__construct($message, $code, $previous); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function getName(): string |
|
| 24 | { |
||
| 25 | 1 | return 'Queue channel is not properly configured'; |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | public function getSolution(): ?string |
|
| 35 | The most important parameters are "\$definitions" and "\$enableRuntimeChannelDefinition". |
||
| 36 | |||
| 37 | 1 | SOLUTION; |
|
| 40 |