‪TYPO3CMS  10.4
AspectDeclaration.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 
32  public static function ‪create(string ‪$identifier): self
33  {
34  return new static(‪$identifier);
35  }
36 
37  private function ‪__construct(string ‪$identifier)
38  {
39  $this->identifier = ‪$identifier;
40  }
41 
45  public function ‪getConfiguration(): array
46  {
48  }
49 
50  public function ‪withConfiguration(array ‪$configuration): self
51  {
52  $target = clone $this;
53  $target->configuration = ‪$configuration;
54  return $target;
55  }
56 
57  public function ‪describe(): string
58  {
59  return ‪$this->identifier;
60  }
61 }
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\getConfiguration
‪array getConfiguration()
Definition: AspectDeclaration.php:43
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\describe
‪describe()
Definition: AspectDeclaration.php:55
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\withConfiguration
‪withConfiguration(array $configuration)
Definition: AspectDeclaration.php:48
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\$configuration
‪array $configuration
Definition: AspectDeclaration.php:28
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\create
‪static create(string $identifier)
Definition: AspectDeclaration.php:30
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\$identifier
‪string $identifier
Definition: AspectDeclaration.php:24
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\Applicable
Definition: Applicable.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration
Definition: AspectDeclaration.php:21
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder
Definition: Applicable.php:18
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\__construct
‪__construct(string $identifier)
Definition: AspectDeclaration.php:35