public function render()
    {
        $renderFunction = function (&$element, $key) {
            $element = $element->render();
        };
        array_walk($this->elements, $renderFunction);

        $structuredElements = StructureManager::buildStructure($this->elements, $this->structure);

        return $structuredElements;
    }
public function render()
    {
        $renderFunction = function (&$element, $key) {
            $element = $element->render();
        };
        array_walk($this->elements, $renderFunction);

        $structuredElements = StructureManager::buildStructure($this->elements, $this->structure);

        return $structuredElements;
    }
public function render ( ) { $ renderFunction = function ( & $ element , $ key ) { $ element = $ element -> render ( ) ; } ; array_walk ( $ this -> elements , $ renderFunction ) ; $ structuredElements = StructureManager :: buildStructure ( $ this -> elements , $ this -> structure ) ; return $ structuredElements ; }
Render structured element

@return string
Render structured element