ParseError thrown

syntax error, unexpected 'public' (T_PUBLIC), expecting end of file