‪TYPO3CMS  ‪main
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 {
22  private string ‪$identifier;
23  private array ‪$configuration = [];
24 
25  public static function ‪create(string ‪$identifier): self
26  {
27  return new static(‪$identifier);
28  }
29 
30  private function ‪__construct(string ‪$identifier)
31  {
32  $this->identifier = ‪$identifier;
33  }
34 
35  public function ‪getConfiguration(): array
36  {
38  }
39 
40  public function ‪withConfiguration(array ‪$configuration): self
41  {
42  $target = clone $this;
43  $target->configuration = ‪$configuration;
44  return $target;
45  }
46 
47  public function ‪describe(): string
48  {
49  return ‪$this->identifier;
50  }
51 }
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\describe
‪describe()
Definition: AspectDeclaration.php:47
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\withConfiguration
‪withConfiguration(array $configuration)
Definition: AspectDeclaration.php:40
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\$configuration
‪array $configuration
Definition: AspectDeclaration.php:23
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\create
‪static create(string $identifier)
Definition: AspectDeclaration.php:25
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\getConfiguration
‪getConfiguration()
Definition: AspectDeclaration.php:35
‪TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\AspectDeclaration\$identifier
‪string $identifier
Definition: AspectDeclaration.php:22
‪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:30