Zephir\ClassDefinition::hasProperty PHP Method

hasProperty() public method

Checks if a class definition has a property
public hasProperty ( string $name ) : boolean
$name string
return boolean
    public function hasProperty($name)
    {
        if (isset($this->properties[$name])) {
            return true;
        } else {
            $extendsClassDefinition = $this->getExtendsClassDefinition();
            if ($extendsClassDefinition) {
                if ($extendsClassDefinition->hasProperty($name)) {
                    return true;
                }
            }
            return false;
        }
    }