Method to set the bookend key.
public setBookend ( integer $key = Paginator::SINGLE_ARROWS ) : |
||
$key | integer | |
return |
public function testSetAndGetItems() { $p = new Paginator(array()); $p->setBookend(Paginator::DOUBLE_ARROWS); $p->setItems(array(1, 2, 3)); $this->assertEquals(3, count($p->getItems())); $this->assertEquals(3, $p->getItemCount()); }