| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function DaftRouterHandleRequest(Request $request, array $args) : Response |
||
| 18 | { |
||
| 19 | $resp = new Response(''); |
||
| 20 | |||
| 21 | $cookie = new Cookie( |
||
| 22 | $args['name'], |
||
| 23 | $args['value'], |
||
| 24 | 123, |
||
| 25 | '', |
||
| 26 | null, |
||
| 27 | '1' === $args['secure'], |
||
| 28 | '1' === $args['http'], |
||
| 29 | false, |
||
| 30 | $args['same-site'] |
||
| 31 | ); |
||
| 32 | |||
| 33 | $resp->headers->setCookie($cookie); |
||
| 34 | |||
| 35 | return $resp; |
||
| 36 | } |
||
| 69 |