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