code = $code; $this->name = $name; $this->trace = $trace; } /** * Returns the class name of the uncaught exception. * * @return string */ public function getName(): string { return $this->name; } /** * Gets the stack trace at the point the panic occurred. * * @return string */ public function getPanicTrace(): string { return $this->trace; } }