public function pushElement(AbstractClassContent $element, $setMainNode = false, $contentSetPos = 0)
    {
        $this->elements[] = [
            'content'               => $element,
            'set_main_node'         => (true === $setMainNode),
            'content_set_position'  => $contentSetPos,
        ];

        return $this;
    }
public function pushElement(AbstractClassContent $element, $setMainNode = false, $contentSetPos = 0)
    {
        $this->elements[] = [
            'content'               => $element,
            'set_main_node'         => (true === $setMainNode),
            'content_set_position'  => $contentSetPos,
        ];

        return $this;
    }
public function pushElement ( AbstractClassContent $ element , $ setMainNode = false , $ contentSetPos = 0 ) { $ this -> elements [ ] = [ 'content' => $ element , 'set_main_node' => ( true === $ setMainNode ) , 'content_set_position' => $ contentSetPos , ] ; return $ this ; }
Push a content into a page.

@param AbstractClassContent  $element            The content to be pushed.
@param boolean               $setMainNode        Optional, is the main node to be set? (false by deault).
@param integer               $contentSetPos      Optional, the column index in which to push content (0 by default).

@return PageBuilder                              The builder instance.
@codeCoverageIgnore
Push a content into a page .