Дополнительный контекст для логов и ответов API */ private array $context; /** * @param array $context */ public function __construct(string $message, array $context = [], int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); $this->context = $context; } /** * @return array */ public function getContext(): array { return $this->context; } }