ParseError thrown

syntax error, unexpected 'class' (T_CLASS), expecting function (T_FUNCTION)