public function setLayout(Layout $layout, AbstractClassContent $toPushInMainZone = null)
    {
        $this->layout = $layout;
        $this->itemToPushInMainZone = $toPushInMainZone;

        return $this;
    }
public function setLayout(Layout $layout, AbstractClassContent $toPushInMainZone = null)
    {
        $this->layout = $layout;
        $this->itemToPushInMainZone = $toPushInMainZone;

        return $this;
    }
public function setLayout ( Layout $ layout , AbstractClassContent $ toPushInMainZone = null ) { $ this -> layout = $ layout ; $ this -> itemToPushInMainZone = $ toPushInMainZone ; return $ this ; }
Sets a layout instance.

@param  Layout                       $layout             The layout to be set.
@param  AbstractClassContent|null    $toPushInMainZone   Optional, content be pushed in main zone.

@return PageBuilder                                      The builder instance.
@codeCoverageIgnore
Sets a layout instance .