src/Sulu/Component/Content/Compat/Structure.php
public function getProperty($name)
    {
        $result = $this->findProperty($name);

        if (null !== $result) {
            return $result;
        } elseif (isset($this->properties[$name])) {
            return $this->properties[$name];
        } else {
            throw new NoSuchPropertyException($name);
        }
    }
public function getProperty($name)
    {
        $result = $this->findProperty($name);

        if (null !== $result) {
            return $result;
        } elseif (isset($this->properties[$name])) {
            return $this->properties[$name];
        } else {
            throw new NoSuchPropertyException($name);
        }
    }
public function getProperty ( $ name ) { $ result = $ this -> findProperty ( $ name ) ; if ( null !== $ result ) { return $ result ; } elseif ( isset ( $ this -> properties [ $ name ] ) ) { return $ this -> properties [ $ name ] ; } else { throw new NoSuchPropertyException ( $ name ) ; } }
returns a property instance with given name.

@param $name string name of property

@return PropertyInterface

@throws NoSuchPropertyException
returns a property instance with given name .