-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
- Loading branch information
Showing
52 changed files
with
1,385 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
preset: package | ||
|
||
namespace: Laravie\QueryFilter | ||
|
||
factory: | ||
path: tests/Factories | ||
|
||
console: | ||
namespace: Laravie\QueryFilter\Console | ||
|
||
model: | ||
namespace: Laravie\QueryFilter | ||
|
||
provider: | ||
namespace: Laravie\QueryFilter | ||
|
||
testing: | ||
namespace: Laravie\QueryFilter\Tests | ||
extends: | ||
unit: PHPUnit\Framework\TestCase | ||
feature: Laravie\QueryFilter\Tests\TestCase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Laravie\QueryFilter\Contracts; | ||
|
||
interface Field | ||
{ | ||
/** | ||
* Validate column. | ||
*/ | ||
public function validate(): bool; | ||
|
||
/** | ||
* Is relation selector. | ||
*/ | ||
public function isRelationSelector(): bool; | ||
|
||
/** | ||
* Is JSON path selector. | ||
*/ | ||
public function isJsonPathSelector(): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Laravie\QueryFilter\Contracts; | ||
|
||
interface Keyword | ||
{ | ||
/** | ||
* Validate keyword value. | ||
*/ | ||
public function validate(): bool; | ||
|
||
/** | ||
* Get keyword value. | ||
*/ | ||
public function getValue(): string; | ||
|
||
/** | ||
* Get searchable strings. | ||
*/ | ||
public function all(): array; | ||
|
||
/** | ||
* Handle resolving keyword for filter. | ||
*/ | ||
public function handle(SearchFilter $filter): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Laravie\QueryFilter\Contracts\Keyword; | ||
|
||
interface AsExactValue | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Laravie\QueryFilter\Contracts\Keyword; | ||
|
||
interface AsLowerCase | ||
{ | ||
// | ||
} |
Oops, something went wrong.