-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
1 parent
4f01984
commit 6ea4d2b
Showing
5 changed files
with
98 additions
and
35 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,45 @@ | ||
<?php | ||
|
||
namespace eloquentFilter\QueryFilter\Core\FilterBuilder; | ||
|
||
/** | ||
* | ||
*/ | ||
class ResponseFilter | ||
{ | ||
/** | ||
* @var | ||
*/ | ||
public $response; | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getResponse() | ||
{ | ||
return $this->response; | ||
} | ||
|
||
/** | ||
* @param mixed $response | ||
*/ | ||
public function setResponse($response): void | ||
{ | ||
$this->response = $response; | ||
} | ||
|
||
/** | ||
* @param $queryBuilderWrapper | ||
* @param $out | ||
* | ||
* @return mixed | ||
*/ | ||
public function responseFilterHandler($queryBuilderWrapper, $out) | ||
{ | ||
if (method_exists($queryBuilderWrapper->getModel(), 'ResponseFilter')) { | ||
$out = $queryBuilderWrapper->responseFilter($out); | ||
} | ||
$this->setResponse($out); | ||
|
||
} | ||
} |
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