Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| AddFilterContext | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| process | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | namespace Apie\Serializer\Context; |
| 3 | |
| 4 | use Apie\Core\Context\ApieContext; |
| 5 | use Apie\Core\ContextBuilders\ContextBuilderInterface; |
| 6 | use Psr\Http\Message\ServerRequestInterface; |
| 7 | |
| 8 | class AddFilterContext implements ContextBuilderInterface |
| 9 | { |
| 10 | public function process(ApieContext $context): ApieContext |
| 11 | { |
| 12 | $request = $context->getContext(ServerRequestInterface::class, false); |
| 13 | if ($request instanceof ServerRequestInterface) { |
| 14 | // |
| 15 | } |
| 16 | |
| 17 | return $context; |
| 18 | } |
| 19 | } |