| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class BuildResponseEvent extends AbstractEvent implements StoppableEventInterface |
||
| 14 | { |
||
| 15 | private ?ResponseInterface $response = null; |
||
| 16 | |||
| 17 | public function __construct( |
||
| 18 | private SiteInterface $site, |
||
| 19 | private ServerRequestInterface $request, |
||
| 20 | private SiteLanguage $selectedLanguage |
||
| 21 | ) {} |
||
| 22 | |||
| 23 | public function getSite(): SiteInterface |
||
| 24 | { |
||
| 25 | return $this->site; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getRequest(): ServerRequestInterface |
||
| 29 | { |
||
| 30 | return $this->request; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getSelectedLanguage(): SiteLanguage |
||
| 34 | { |
||
| 35 | return $this->selectedLanguage; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getResponse(): ?ResponseInterface |
||
| 39 | { |
||
| 40 | return $this->response; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setResponse(ResponseInterface $response): void |
||
| 46 | } |
||
| 47 | |||
| 48 | public function isPropagationStopped(): bool |
||
| 51 | } |
||
| 52 | } |
||
| 53 |