| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 1 | public function getResponseWithAcceptedCookie() |
|
| 20 | { |
||
| 21 | 1 | $cookie = Cookie::create('msalsas-gdpr-consent-banner', 'accepted', strtotime('now + ' . $this->timeToExpire)); |
|
| 22 | 1 | $response = new Response("accepted"); |
|
| 23 | 1 | $response->headers->setCookie($cookie); |
|
| 24 | |||
| 25 | 1 | return $response; |
|
| 26 | } |
||
| 27 | } |