public function addPage(PageInterface $page)
    {
        $this->items[$page->path()] = ['slug' => $page->slug()];

        return $this;
    }
public function addPage(PageInterface $page)
    {
        $this->items[$page->path()] = ['slug' => $page->slug()];

        return $this;
    }
public function addPage ( PageInterface $ page ) { $ this -> items [ $ page -> path ( ) ] = [ 'slug' => $ page -> slug ( ) ] ; return $ this ; }
Add a single page to a collection

@param PageInterface $page

@return $this
Add a single page to a collection