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