Library/ClassDefinition.php
public function hasConstant($name)
    {
        if (isset($this->constants[$name])) {
            return true;
        }

        $extendsClassDefinition = $this->getExtendsClassDefinition();
        if ($extendsClassDefinition) {
            if ($extendsClassDefinition->hasConstant($name)) {
                return true;
            }
        }

        /*
         * Check if constant is defined in interfaces
         */
        return $this->hasConstantFromInterfaces($name);
    }
public function hasConstant($name)
    {
        if (isset($this->constants[$name])) {
            return true;
        }

        $extendsClassDefinition = $this->getExtendsClassDefinition();
        if ($extendsClassDefinition) {
            if ($extendsClassDefinition->hasConstant($name)) {
                return true;
            }
        }

        /*
         * Check if constant is defined in interfaces
         */
        return $this->hasConstantFromInterfaces($name);
    }
public function hasConstant ( $ name ) { if ( isset ( $ this -> constants [ $ name ] ) ) { return true ; } $ extendsClassDefinition = $ this -> getExtendsClassDefinition ( ) ; if ( $ extendsClassDefinition ) { if ( $ extendsClassDefinition -> hasConstant ( $ name ) ) { return true ; } } /*
         * Check if constant is defined in interfaces
         */ return $ this -> hasConstantFromInterfaces ( $ name ) ; }
Checks if class definition has a property.

@param string $name

@return bool
Checks if class definition has a property .