Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Middleware implements MiddlewareInterface{ |
||
12 | protected static array $data = []; |
||
13 | protected static Response $response; |
||
14 | |||
15 | public function __get($key) |
||
16 | { |
||
17 | return (array_key_exists($key,self::$data)) ? self::$data[$key] : null; |
||
18 | } |
||
19 | |||
20 | public function __set($key,$value) |
||
21 | { |
||
22 | self::$data[$key] = $value; |
||
23 | } |
||
24 | |||
25 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
31 | } |
||
32 | |||
33 | } |