src/Sulu/Component/Content/Metadata/PropertiesMetadata.php
public function getProperty($name)
    {
        if (!isset($this->properties[$name])) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Unknown model property "%s", in structure "%s". Known model properties: "%s". Loaded from "%s"',
                    $name,
                    $this->getName(),
                    implode('", "', array_keys($this->properties)),
                    $this->resource
                )
            );
        }

        return $this->properties[$name];
    }
public function getProperty($name)
    {
        if (!isset($this->properties[$name])) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Unknown model property "%s", in structure "%s". Known model properties: "%s". Loaded from "%s"',
                    $name,
                    $this->getName(),
                    implode('", "', array_keys($this->properties)),
                    $this->resource
                )
            );
        }

        return $this->properties[$name];
    }
public function getProperty ( $ name ) { if ( ! isset ( $ this -> properties [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown model property "%s", in structure "%s". Known model properties: "%s". Loaded from "%s"' , $ name , $ this -> getName ( ) , implode ( '", "' , array_keys ( $ this -> properties ) ) , $ this -> resource ) ) ; } return $ this -> properties [ $ name ] ; }
Return a model property.

@see StructureMetadata::getProperties()

@param string $name

@return PropertyMetadata
Return a model property .