- Still WIP on Api's wrapper
This commit is contained in:
1 parent
1927b43999
commit
8e0dce3e71
6 files changed
+26
-6
No files matched your search
@@ -16,7 +16,7 @@ class OrderBy extends Fragment {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function add(string $field, ? string $direction = null) : self
|
||||
public function add(object|string $field, ? string $direction = null) : self
|
||||
{
|
||||
$this->validateFieldType($field);
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Ulmus\Query;
|
||||
|
||||
use Ulmus\Query;
|
||||
|
||||
interface QueryBuilderInterface
|
||||
{
|
||||
public function push(Fragment $queryFragment) : self;
|
||||
@@ -9,5 +11,5 @@ interface QueryBuilderInterface
|
||||
public function render(bool $skipToken = false) /* mixed */;
|
||||
public function reset() : void;
|
||||
public function getFragment(string $class, int $index = 0) : ? Fragment;
|
||||
public function removeFragment(Fragment $fragment) : void;
|
||||
public function removeFragment(Query\Fragment|array|\Stringable|string $fragment) : void;
|
||||
}
|
||||
Reference in new issue
Block a user