Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
5 | class ErrorCodes implements \Interop\Http\ServerMiddleware\MiddlewareInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var \Phrest\API\ErrorCodes |
||
9 | */ |
||
10 | private $errorCodes; |
||
11 | |||
12 | /** |
||
13 | * @var \Zend\Cache\Storage\StorageInterface |
||
14 | */ |
||
15 | private $cache; |
||
16 | |||
17 | private const CACHE_ERROR_CODES = 'Phrest_API_Action_ErrorCodes'; |
||
18 | |||
19 | public function __construct(\Zend\Cache\Storage\StorageInterface $cache, \Phrest\API\ErrorCodes $errorCodes) |
||
23 | } |
||
24 | |||
25 | public function process(\Psr\Http\Message\ServerRequestInterface $request, \Interop\Http\ServerMiddleware\DelegateInterface $delegate) |
||
35 | } |
||
36 | } |