- Added SearchRequest compatibilty and began working on QueryBuilder processing
This commit is contained in:
1 parent
ce4d6cdf7c
commit
4e120cea6c
20 files changed
+510
-141
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Api\RequestBuilder;
|
||||
|
||||
class Pagination extends Fragment {
|
||||
|
||||
public array $conditionList;
|
||||
|
||||
public function add($field, mixed $value) : self
|
||||
{
|
||||
$this->conditionList[$field] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function render(bool $skipToken = false) : string
|
||||
{
|
||||
return http_build_query($this->conditionList);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user