code = $code; $this->message = $message; } public ?int $code; public ?string $message; /** * Determines if the notification represents an error. * * Returns true if the notification code is not 650 (success code). * Code 650 is used for successful operations in the BusProNet API. * * @return bool True if the notification is an error, false otherwise */ public function isError(): bool { return 650 !== $this->code; } }