‪TYPO3CMS  11.5
ModifyFileDumpEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\EventDispatcher\StoppableEventInterface;
21 use Psr\Http\Message\ResponseInterface;
22 use Psr\Http\Message\ServerRequestInterface;
24 
34 final class ‪ModifyFileDumpEvent implements StoppableEventInterface
35 {
37  private ServerRequestInterface ‪$request;
38  private ?ResponseInterface ‪$response = null;
39 
40  public function ‪__construct(‪ResourceInterface ‪$file, ServerRequestInterface ‪$request)
41  {
42  $this->file = ‪$file;
43  $this->request = ‪$request;
44  }
45 
46  public function ‪getFile(): ‪ResourceInterface
47  {
48  return ‪$this->file;
49  }
50 
51  public function ‪setFile(‪ResourceInterface ‪$file): void
52  {
53  $this->file = ‪$file;
54  }
55 
56  public function ‪getRequest(): ServerRequestInterface
57  {
58  return ‪$this->request;
59  }
60 
61  public function ‪setResponse(ResponseInterface ‪$response): void
62  {
63  $this->response = ‪$response;
64  }
65 
66  public function ‪getResponse(): ?ResponseInterface
67  {
68  return ‪$this->response;
69  }
70 
71  public function ‪isPropagationStopped(): bool
72  {
73  return $this->response !== null;
74  }
75 }
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\isPropagationStopped
‪isPropagationStopped()
Definition: ModifyFileDumpEvent.php:71
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\__construct
‪__construct(ResourceInterface $file, ServerRequestInterface $request)
Definition: ModifyFileDumpEvent.php:40
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\$file
‪ResourceInterface $file
Definition: ModifyFileDumpEvent.php:36
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\$request
‪ServerRequestInterface $request
Definition: ModifyFileDumpEvent.php:37
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\getRequest
‪getRequest()
Definition: ModifyFileDumpEvent.php:56
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent
Definition: ModifyFileDumpEvent.php:35
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\setFile
‪setFile(ResourceInterface $file)
Definition: ModifyFileDumpEvent.php:51
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\$response
‪ResponseInterface $response
Definition: ModifyFileDumpEvent.php:38
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\setResponse
‪setResponse(ResponseInterface $response)
Definition: ModifyFileDumpEvent.php:61
‪TYPO3\CMS\Core\Resource\Event
Definition: AfterFileAddedEvent.php:18
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\getResponse
‪getResponse()
Definition: ModifyFileDumpEvent.php:66
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:22
‪TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent\getFile
‪getFile()
Definition: ModifyFileDumpEvent.php:46