Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
Runner.php
01 <?php declare(strict_types=1);
02
03 /**
04 * @package s9e\RegexpBuilder
05 * @copyright Copyright (c) 2016-2022 The s9e authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\RegexpBuilder;
09
10 use s9e\RegexpBuilder\Passes\PassInterface;
11
12 class Runner
13 {
14 /**
15 * @var PassInterface[]
16 */
17 protected $passes = [];
18
19 /**
20 * Add a pass to the list
21 *
22 * @param PassInterface $pass
23 * @return void
24 */
25 public function addPass(PassInterface $pass): void
26 {
27 $this->passes[] = $pass;
28 }
29
30 /**
31 * Run all passes on the list of strings
32 *
33 * @param array[] $strings
34 * @return array[]
35 */
36 public function run(array $strings): array
37 {
38 foreach ($this->passes as $pass)
39 {
40 $strings = $pass->run($strings);
41 }
42
43 return $strings;
44 }
45 }