generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
25 additions
and
180 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,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Data\Db\FilterHandler; | ||
|
||
use Yiisoft\Data\Reader\Filter\Like; | ||
use Yiisoft\Data\Reader\FilterInterface; | ||
|
||
final class LikeFilterHandler implements QueryFilterHandlerInterface | ||
{ | ||
public function getFilterClass(): string | ||
{ | ||
return Like::class; | ||
} | ||
|
||
public function getCriteria(FilterInterface $filter, Context $context): ?Criteria | ||
{ | ||
/** @var Like $filter */ | ||
|
||
return new Criteria(['LIKE', $filter->getField(), $filter->getValue()]); | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
src/FilterHandler/LikeFilterHandler/BaseLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/FilterHandler/LikeFilterHandler/LikeFilterHandlerFactory.php
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/FilterHandler/LikeFilterHandler/MssqlLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
src/FilterHandler/LikeFilterHandler/MysqlLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/FilterHandler/LikeFilterHandler/OracleLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/FilterHandler/LikeFilterHandler/PostgresLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/FilterHandler/LikeFilterHandler/SqliteLikeFilterHandler.php
This file was deleted.
Oops, something went wrong.