public function render(IO $io, $indentation = 0)
    {
        $this->alignment->align($io, $indentation);

        foreach ($this->elements as $i => $element) {
            $element->render($io, $this->indentations[$i] + $indentation);
        }

        $this->elements = array();
    }
public function render(IO $io, $indentation = 0)
    {
        $this->alignment->align($io, $indentation);

        foreach ($this->elements as $i => $element) {
            $element->render($io, $this->indentations[$i] + $indentation);
        }

        $this->elements = array();
    }
public function render ( IO $ io , $ indentation = 0 ) { $ this -> alignment -> align ( $ io , $ indentation ) ; foreach ( $ this -> elements as $ i => $ element ) { $ element -> render ( $ io , $ this -> indentations [ $ i ] + $ indentation ) ; } $ this -> elements = array ( ) ; }
Renders all elements in the layout.

@param IO  $io          The I/O.
@param int $indentation The number of spaces to indent.
Renders all elements in the layout .