From 9e9ef9ba06cc62aa194d65293a931f3b5a04a829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Wr=C3=B3blewski?= Date: Wed, 31 Jul 2019 19:08:20 +0200 Subject: [PATCH] Bump php version + allow disabling pagination --- composer.json | 2 +- src/Datatable/Configuration.php | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9d24b75..46c164b 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "4ernovm/datatable", "require": { - "php": ">=5.4.0", + "php": ">=7.3.0", "datatables/datatables": "~1.10" }, "require-dev": { diff --git a/src/Datatable/Configuration.php b/src/Datatable/Configuration.php index 7e8c8d0..56d3392 100644 --- a/src/Datatable/Configuration.php +++ b/src/Datatable/Configuration.php @@ -10,6 +10,11 @@ class Configuration implements ArrayableInterface { use ToArrayTrait; + /** + * @var boolean + */ + protected $paging; + /** * @var string */ @@ -70,6 +75,24 @@ class Configuration implements ArrayableInterface */ protected $order; + /** + * @return bool + */ + public function getPaging(): ?bool + { + return $this->paging; + } + + /** + * @param bool $paging + * @return Configuration + */ + public function setPaging(bool $paging): self + { + $this->paging = $paging; + return $this; + } + /** * @return string */