Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 28.57% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | class RequestEvent extends KernelEvent |
||
32 | { |
||
33 | private ?ResponseInterface $response = null; |
||
34 | |||
35 | /** |
||
36 | * Returns the response object. |
||
37 | */ |
||
38 | public function getResponse(): ?ResponseInterface |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Sets a response and stops event propagation. |
||
45 | */ |
||
46 | public function setResponse(ResponseInterface $response): void |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Returns whether a response was set. |
||
54 | * |
||
55 | * @return bool Whether a response was set |
||
56 | */ |
||
57 | 4 | public function hasResponse(): bool |
|
62 |