‪TYPO3CMS  11.5
ForwardResponse.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 
22 
24 {
25  private string ‪$actionName;
26  private ?string ‪$controllerName = null;
27  private ?string ‪$extensionName = null;
28  private ?array ‪$arguments = null;
30 
31  public function ‪__construct(string ‪$actionName)
32  {
33  $this->actionName = ‪$actionName;
34  $this->argumentsValidationResult = new ‪Result();
35  parent::__construct('php://temp', 204);
36  }
37 
38  public function ‪withControllerName(string ‪$controllerName): self
39  {
40  $clone = clone $this;
41  $clone->controllerName = ‪$controllerName;
42  return $clone;
43  }
44 
45  public function ‪withoutControllerName(): self
46  {
47  $clone = clone $this;
48  $clone->controllerName = null;
49  return $clone;
50  }
51 
52  public function ‪withExtensionName(string ‪$extensionName): self
53  {
54  $clone = clone $this;
55  $clone->extensionName = ‪$extensionName;
56  return $clone;
57  }
58 
59  public function ‪withoutExtensionName(): self
60  {
61  $clone = clone $this;
62  $this->extensionName = null;
63  return $clone;
64  }
65 
66  public function ‪withArguments(array ‪$arguments): self
67  {
68  $clone = clone $this;
69  $clone->arguments = ‪$arguments;
70  return $clone;
71  }
72 
73  public function ‪withoutArguments(): self
74  {
75  $clone = clone $this;
76  $this->arguments = null;
77  return $clone;
78  }
79 
81  {
82  $clone = clone $this;
83  $clone->argumentsValidationResult = ‪$argumentsValidationResult;
84  return $clone;
85  }
86 
87  public function ‪getActionName(): string
88  {
89  return ‪$this->actionName;
90  }
91 
92  public function ‪getControllerName(): ?string
93  {
95  }
96 
97  public function ‪getExtensionName(): ?string
98  {
100  }
101 
102  public function ‪getArguments(): ?array
103  {
104  return ‪$this->arguments;
105  }
106 
108  {
110  }
111 }
‪TYPO3\CMS\Extbase\Http\ForwardResponse\getControllerName
‪getControllerName()
Definition: ForwardResponse.php:92
‪TYPO3\CMS\Extbase\Http\ForwardResponse\getActionName
‪getActionName()
Definition: ForwardResponse.php:87
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withoutArguments
‪withoutArguments()
Definition: ForwardResponse.php:73
‪TYPO3\CMS\Extbase\Http\ForwardResponse\getArgumentsValidationResult
‪getArgumentsValidationResult()
Definition: ForwardResponse.php:107
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withArgumentsValidationResult
‪withArgumentsValidationResult(Result $argumentsValidationResult)
Definition: ForwardResponse.php:80
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withExtensionName
‪withExtensionName(string $extensionName)
Definition: ForwardResponse.php:52
‪TYPO3\CMS\Extbase\Http\ForwardResponse
Definition: ForwardResponse.php:24
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withControllerName
‪withControllerName(string $controllerName)
Definition: ForwardResponse.php:38
‪TYPO3\CMS\Extbase\Error\Result
Definition: Result.php:24
‪TYPO3\CMS\Extbase\Http
Definition: ForwardResponse.php:18
‪TYPO3\CMS\Extbase\Http\ForwardResponse\__construct
‪__construct(string $actionName)
Definition: ForwardResponse.php:31
‪TYPO3\CMS\Core\Http\Response
Definition: Response.php:30
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withArguments
‪withArguments(array $arguments)
Definition: ForwardResponse.php:66
‪TYPO3\CMS\Extbase\Http\ForwardResponse\$argumentsValidationResult
‪Result $argumentsValidationResult
Definition: ForwardResponse.php:29
‪TYPO3\CMS\Extbase\Http\ForwardResponse\$arguments
‪array $arguments
Definition: ForwardResponse.php:28
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withoutExtensionName
‪withoutExtensionName()
Definition: ForwardResponse.php:59
‪TYPO3\CMS\Extbase\Http\ForwardResponse\withoutControllerName
‪withoutControllerName()
Definition: ForwardResponse.php:45
‪TYPO3\CMS\Extbase\Http\ForwardResponse\getExtensionName
‪getExtensionName()
Definition: ForwardResponse.php:97
‪TYPO3\CMS\Extbase\Http\ForwardResponse\$actionName
‪string $actionName
Definition: ForwardResponse.php:25
‪TYPO3\CMS\Extbase\Http\ForwardResponse\$extensionName
‪string $extensionName
Definition: ForwardResponse.php:27
‪TYPO3\CMS\Extbase\Http\ForwardResponse\getArguments
‪getArguments()
Definition: ForwardResponse.php:102
‪TYPO3\CMS\Extbase\Http\ForwardResponse\$controllerName
‪string $controllerName
Definition: ForwardResponse.php:26