public function paginator(Paginator $paginator, PresentableInterface $presenter)
    {
        $items = [];

        foreach ($paginator->getItems() as $item) {
            $items[] = $this->model($item, $presenter);
        }

        $paginator->setItems($items);

        return $paginator;
    }
public function paginator(Paginator $paginator, PresentableInterface $presenter)
    {
        $items = [];

        foreach ($paginator->getItems() as $item) {
            $items[] = $this->model($item, $presenter);
        }

        $paginator->setItems($items);

        return $paginator;
    }
public function paginator ( Paginator $ paginator , PresentableInterface $ presenter ) { $ items = [ ] ; foreach ( $ paginator -> getItems ( ) as $ item ) { $ items [ ] = $ this -> model ( $ item , $ presenter ) ; } $ paginator -> setItems ( $ items ) ; return $ paginator ; }
Return an instance of a Paginator with each value wrapped in a presenter object

@param  Paginator $paginator
@param  PresentableInterface $presenter

@return Paginator
Return an instance of a Paginator with each value wrapped in a presenter object