public function setStartElement(MenuElement $startElement = null)
    {
        $this->startElement = $startElement;
        if ($startElement && !in_array($startElement, $this->elements, true)) {
            array_push($this->elements, $startElement);
        }
        return $this;
    }