Msieprawski\ResourceTable\Presenters\DefaultPresenter::__construct PHP Method

__construct() public method

Create a new Bootstrap presenter instance.
public __construct ( Illuminate\Contracts\Pagination\Paginator $paginator, Illuminate\Pagination\UrlWindow $window = null ) : void
$paginator Illuminate\Contracts\Pagination\Paginator
$window Illuminate\Pagination\UrlWindow
return void
    public function __construct(PaginatorContract $paginator, UrlWindow $window = null)
    {
        $this->paginator = $paginator;
        $this->window = is_null($window) ? UrlWindow::make($paginator) : $window->get();
    }