'Add a constant variable into the current class.'

def addClassConstant(self, name, vartype, doc=None):

    if self.currentClass:
        phpConstant = self.currentClass.constants.get(name)
        if (phpConstant is None):
            log.debug('CLASS    CONST:    %r', name)
            self.currentClass.constants[name] = PHPConstant(name, self.lineno, vartype)
        elif vartype:
            log.debug('Adding    type    information    for    CLASS    CONST:    %r,    vartype:    %r', name, vartype)
            phpConstant.addType(self.lineno, vartype)
