src/Sulu/Component/Content/Metadata/ItemMetadata.php
public function getChild($name)
    {
        if (!isset($this->children[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown child "%s" in structure "%s" loaded from: "%s". Children: "%s"',
                 $name, $this->name, $this->resource, implode('", "', array_keys($this->children))
            ));
        }

        return $this->children[$name];
    }
public function getChild($name)
    {
        if (!isset($this->children[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown child "%s" in structure "%s" loaded from: "%s". Children: "%s"',
                 $name, $this->name, $this->resource, implode('", "', array_keys($this->children))
            ));
        }

        return $this->children[$name];
    }
public function getChild ( $ name ) { if ( ! isset ( $ this -> children [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown child "%s" in structure "%s" loaded from: "%s". Children: "%s"' , $ name , $ this -> name , $ this -> resource , implode ( '", "' , array_keys ( $ this -> children ) ) ) ) ; } return $ this -> children [ $ name ] ; }
Return the named property.

@param string $name

@return ItemMetadata
Return the named property .