‪TYPO3CMS  10.4
PageTypeDeclaration.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 
21 {
25  private ‪$identifier;
26 
30  private ‪$configuration = [];
31 
35  private ‪$variables;
36 
40  private ‪$resolveArguments = [];
41 
45  private ‪$generateParameters = [];
46 
47  public static function ‪create(string ‪$identifier)
48  {
49  return new static(‪$identifier);
50  }
51 
52  private function ‪__construct(string ‪$identifier)
53  {
54  $this->identifier = ‪$identifier;
55  }
56 
60  public function ‪getConfiguration(): array
61  {
63  }
64 
68  public function ‪getVariables(): ‪Variables
69  {
70  return ‪$this->variables;
71  }
72 
76  public function ‪getResolveArguments(): array
77  {
79  }
80 
84  public function ‪getGenerateParameters(): array
85  {
87  }
88 
89  public function ‪withConfiguration(array ‪$configuration): self
90  {
91  $target = clone $this;
92  $target->configuration = ‪$configuration;
93  return $target;
94  }
95 
96  public function ‪withVariables(‪Variables ‪$variables): self
97  {
98  $target = clone $this;
99  $target->variables = ‪$variables;
100  return $target;
101  }
102 
103  public function ‪withResolveArguments(array ‪$resolveArguments): self
104  {
105  $target = clone $this;
106  $target->resolveArguments = ‪$resolveArguments;
107  return $target;
108  }
109 
110  public function ‪withGenerateParameters(array ‪$generateParameters): self
111  {
112  $target = clone $this;
113  $target->generateParameters = ‪$generateParameters;
114  return $target;
115  }
116 
117  public function ‪describe(): string
118  {
119  return sprintf('type:%s', $this->identifier);
120  }
121 }
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$variables
‪Variables $variables
Definition: PageTypeDeclaration.php:32
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withResolveArguments
‪withResolveArguments(array $resolveArguments)
Definition: PageTypeDeclaration.php:98
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\HasResolveArguments
Definition: HasResolveArguments.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withVariables
‪withVariables(Variables $variables)
Definition: PageTypeDeclaration.php:91
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\HasGenerateParameters
Definition: HasGenerateParameters.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withGenerateParameters
‪withGenerateParameters(array $generateParameters)
Definition: PageTypeDeclaration.php:105
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Variables
Definition: Variables.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$generateParameters
‪array $generateParameters
Definition: PageTypeDeclaration.php:40
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\__construct
‪__construct(string $identifier)
Definition: PageTypeDeclaration.php:47
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Applicable
Definition: Applicable.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\describe
‪describe()
Definition: PageTypeDeclaration.php:112
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getGenerateParameters
‪array getGenerateParameters()
Definition: PageTypeDeclaration.php:79
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration
Definition: PageTypeDeclaration.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getVariables
‪Variables getVariables()
Definition: PageTypeDeclaration.php:63
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$configuration
‪array $configuration
Definition: PageTypeDeclaration.php:28
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withConfiguration
‪withConfiguration(array $configuration)
Definition: PageTypeDeclaration.php:84
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder
Definition: Applicable.php:18
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getResolveArguments
‪array getResolveArguments()
Definition: PageTypeDeclaration.php:71
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$identifier
‪string $identifier
Definition: PageTypeDeclaration.php:24
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getConfiguration
‪array getConfiguration()
Definition: PageTypeDeclaration.php:55
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$resolveArguments
‪array $resolveArguments
Definition: PageTypeDeclaration.php:36
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\create
‪static create(string $identifier)
Definition: PageTypeDeclaration.php:42