public function build(array $elements)
	{
		$parsedElements = $this->parse($elements); 
		$result = $this->group($parsedElements);

        return $result;
	}
public function build(array $elements)
	{
		$parsedElements = $this->parse($elements); 
		$result = $this->group($parsedElements);

        return $result;
	}
public function build ( array $ elements ) { $ parsedElements = $ this -> parse ( $ elements ) ; $ result = $ this -> group ( $ parsedElements ) ; return $ result ; }
Builds the menu
@param array $elements
@return array
Builds the menu