Library/ClassDefinition.php
public function getProperty($propertyName)
    {
        if (isset($this->properties[$propertyName])) {
            return $this->properties[$propertyName];
        }

        $extendsClassDefinition = $this->getExtendsClassDefinition();
        if ($extendsClassDefinition) {
            if ($extendsClassDefinition->hasProperty($propertyName)) {
                return $extendsClassDefinition->getProperty($propertyName);
            }
        }

        return false;
    }
public function getProperty($propertyName)
    {
        if (isset($this->properties[$propertyName])) {
            return $this->properties[$propertyName];
        }

        $extendsClassDefinition = $this->getExtendsClassDefinition();
        if ($extendsClassDefinition) {
            if ($extendsClassDefinition->hasProperty($propertyName)) {
                return $extendsClassDefinition->getProperty($propertyName);
            }
        }

        return false;
    }
public function getProperty ( $ propertyName ) { if ( isset ( $ this -> properties [ $ propertyName ] ) ) { return $ this -> properties [ $ propertyName ] ; } $ extendsClassDefinition = $ this -> getExtendsClassDefinition ( ) ; if ( $ extendsClassDefinition ) { if ( $ extendsClassDefinition -> hasProperty ( $ propertyName ) ) { return $ extendsClassDefinition -> getProperty ( $ propertyName ) ; } } return false ; }
Returns a method definition by its name.

@param string $propertyName

@return bool|ClassProperty
Returns a method definition by its name .