-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
240 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace Npldevfr\Liquipedia\Interfaces; | ||
|
||
use Exception; | ||
|
||
interface ConditionsBuilderInterface | ||
{ | ||
/** | ||
* @throws Exception | ||
*/ | ||
public function and(string $key, string $operator, string $value): self; | ||
|
||
/** | ||
* @param array<string> $values | ||
* | ||
* @throws Exception | ||
*/ | ||
public function andManyAnd(string $key, string $operator, array $values): self; | ||
|
||
/** | ||
* @param array<string> $values | ||
* | ||
* @throws Exception | ||
*/ | ||
public function andManyOr(string $key, string $operator, array $values): self; | ||
|
||
/** | ||
* @throws Exception | ||
*/ | ||
public function or(string $key, string $operator, string $value): self; | ||
|
||
/** | ||
* @param array<string> $values | ||
* | ||
* @throws Exception | ||
*/ | ||
public function orManyAnd(string $key, string $operator, array $values): self; | ||
|
||
/** | ||
* @param array<string> $values | ||
* | ||
* @throws Exception | ||
*/ | ||
public function orManyOr(string $key, string $operator, array $values): self; | ||
|
||
public function toValue(): string; | ||
|
||
/** | ||
* @throws Exception | ||
*/ | ||
public static function build(?string $key = null, | ||
?string $operator = null, | ||
?string $value = null): self; | ||
} |
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