FML/Script/Features/Paging.php
public function setPages(array $pages)
    {
        $this->pages = array();
        foreach ($pages as $page) {
            $this->addPage($page);
        }
        return $this;
    }
public function setPages(array $pages)
    {
        $this->pages = array();
        foreach ($pages as $page) {
            $this->addPage($page);
        }
        return $this;
    }
public function setPages ( array $ pages ) { $ this -> pages = array ( ) ; foreach ( $ pages as $ page ) { $ this -> addPage ( $ page ) ; } return $ this ; }
Add new Pages

@api
@param PagingPage[] $pages Pages
@return static
Add new Pages