Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
53 | 8 | public function setResponseHeaders(Response $response, string $format, \DateTime $lastModified): void |
|
54 | { |
||
55 | 8 | $response->headers->set('Content-Type', $this->getContentType($format)); |
|
56 | |||
57 | 8 | $this->public ? $response->setPublic() : $response->setPrivate(); |
|
58 | |||
59 | 8 | $response->setMaxAge($this->maxAge); |
|
60 | 8 | $response->setLastModified($lastModified); |
|
61 | 8 | } |
|
62 | |||
69 |