What laserlight means is that in your class code you (a) set up some vars, (b) declare your constructor, and then (c) throw in some more code (starting on the line that's giving you the error).
It's (c) that's the problem: it's not inside a function declaration and PHP has no idea what to do with it.
It's expecting another var or a function declaration, or the end of the class (which is what the error message is saying). It's not getting any of those.