‪TYPO3CMS  ‪main
InvestigateMutationsEvent.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 
23 
29 {
30  private bool ‪$stopPropagation = false;
31 
35  private array ‪$mutationSuggestions = [];
36 
37  public function ‪__construct(
38  public readonly ‪Policy $policy,
39  public readonly ‪Report $report,
40  ) {}
41 
42  public function ‪isPropagationStopped(): bool
43  {
45  }
46 
47  public function ‪stopPropagation(): void
48  {
49  $this->‪stopPropagation = true;
50  }
51 
55  public function ‪getMutationSuggestions(): array
56  {
58  }
59 
64  {
65  $this->mutationSuggestions = ‪$mutationSuggestions;
66  }
67 
69  {
70  if (‪$mutationSuggestions === []) {
71  return;
72  }
73  $this->mutationSuggestions += ‪$mutationSuggestions;
74  }
75 }
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\setMutationSuggestions
‪setMutationSuggestions(MutationSuggestion ... $mutationSuggestions)
Definition: InvestigateMutationsEvent.php:63
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\isPropagationStopped
‪isPropagationStopped()
Definition: InvestigateMutationsEvent.php:42
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\appendMutationSuggestions
‪appendMutationSuggestions(MutationSuggestion ... $mutationSuggestions)
Definition: InvestigateMutationsEvent.php:68
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\$stopPropagation
‪bool $stopPropagation
Definition: InvestigateMutationsEvent.php:30
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Policy
Definition: Policy.php:31
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\stopPropagation
‪stopPropagation()
Definition: InvestigateMutationsEvent.php:47
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent
Definition: InvestigateMutationsEvent.php:29
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event
Definition: InvestigateMutationsEvent.php:18
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\__construct
‪__construct(public readonly Policy $policy, public readonly Report $report,)
Definition: InvestigateMutationsEvent.php:37
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion
Definition: MutationSuggestion.php:29
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\getMutationSuggestions
‪list< MutationSuggestion > getMutationSuggestions()
Definition: InvestigateMutationsEvent.php:55
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\Report
Definition: Report.php:27
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent\$mutationSuggestions
‪array $mutationSuggestions
Definition: InvestigateMutationsEvent.php:35