‪TYPO3CMS  9.5
PageTypeDeclaration.php
Go to the documentation of this file.
1 <?php
2 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 {
23  private ‪$identifier;
24 
28  private ‪$configuration = [];
29 
33  private ‪$variables;
34 
38  private ‪$resolveArguments = [];
39 
43  private ‪$generateParameters = [];
44 
45  public static function ‪create(string ‪$identifier)
46  {
47  return new static(‪$identifier);
48  }
49 
50  private function ‪__construct(string ‪$identifier)
51  {
52  $this->identifier = ‪$identifier;
53  }
54 
58  public function ‪getConfiguration(): array
59  {
61  }
62 
66  public function ‪getVariables(): ‪Variables
67  {
68  return ‪$this->variables;
69  }
70 
74  public function ‪getResolveArguments(): array
75  {
77  }
78 
82  public function ‪getGenerateParameters(): array
83  {
85  }
86 
87  public function ‪withConfiguration(array ‪$configuration): self
88  {
89  $target = clone $this;
90  $target->configuration = ‪$configuration;
91  return $target;
92  }
93 
94  public function ‪withVariables(‪Variables ‪$variables): self
95  {
96  $target = clone $this;
97  $target->variables = ‪$variables;
98  return $target;
99  }
100 
101  public function ‪withResolveArguments(array ‪$resolveArguments): self
102  {
103  $target = clone $this;
104  $target->resolveArguments = ‪$resolveArguments;
105  return $target;
106  }
107 
108  public function ‪withGenerateParameters(array ‪$generateParameters): self
109  {
110  $target = clone $this;
111  $target->generateParameters = ‪$generateParameters;
112  return $target;
113  }
114 
115  public function ‪describe(): string
116  {
117  return sprintf('type:%s', $this->identifier);
118  }
119 }
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$variables
‪Variables $variables
Definition: PageTypeDeclaration.php:30
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withResolveArguments
‪withResolveArguments(array $resolveArguments)
Definition: PageTypeDeclaration.php:96
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\HasResolveArguments
Definition: HasResolveArguments.php:19
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withVariables
‪withVariables(Variables $variables)
Definition: PageTypeDeclaration.php:89
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\HasGenerateParameters
Definition: HasGenerateParameters.php:19
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withGenerateParameters
‪withGenerateParameters(array $generateParameters)
Definition: PageTypeDeclaration.php:103
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Variables
Definition: Variables.php:19
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$generateParameters
‪array $generateParameters
Definition: PageTypeDeclaration.php:38
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\__construct
‪__construct(string $identifier)
Definition: PageTypeDeclaration.php:45
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Applicable
Definition: Applicable.php:19
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\describe
‪describe()
Definition: PageTypeDeclaration.php:110
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getGenerateParameters
‪array getGenerateParameters()
Definition: PageTypeDeclaration.php:77
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration
Definition: PageTypeDeclaration.php:19
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getVariables
‪Variables getVariables()
Definition: PageTypeDeclaration.php:61
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$configuration
‪array $configuration
Definition: PageTypeDeclaration.php:26
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\withConfiguration
‪withConfiguration(array $configuration)
Definition: PageTypeDeclaration.php:82
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder
Definition: Applicable.php:3
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getResolveArguments
‪array getResolveArguments()
Definition: PageTypeDeclaration.php:69
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$identifier
‪string $identifier
Definition: PageTypeDeclaration.php:22
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\getConfiguration
‪array getConfiguration()
Definition: PageTypeDeclaration.php:53
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\$resolveArguments
‪array $resolveArguments
Definition: PageTypeDeclaration.php:34
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\PageTypeDeclaration\create
‪static create(string $identifier)
Definition: PageTypeDeclaration.php:40