errorBag = $errorBag; parent::__construct($message, $code, $previous); } public function getErrorBag(): ErrorBag { return $this->errorBag; } }