/** * Create a new NavigationRenderer * * @param Navigation $navigation * @param bool $skipOuterElement */ public function __construct(Navigation $navigation, $skipOuterElement = false) { $this->skipOuterElement = $skipOuterElement; $this->iterator = $navigation->getIterator(); $this->navigation = $navigation; $this->content = array(); }