Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
AddFilterContext
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 process
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2namespace Apie\Serializer\Context;
3
4use Apie\Core\Context\ApieContext;
5use Apie\Core\ContextBuilders\ContextBuilderInterface;
6use Psr\Http\Message\ServerRequestInterface;
7
8class 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}