Lines
100.00%
2 / 2
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| build | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 27 | final readonly class GenericPathStrategy implements StrategyInterface | |
| 28 | { | |
| 29 | public function __construct( | |
| 30 | private string $path, | |
| 31 | ) { | |
| 32 | } | |
| 33 | ||
| 34 | /** | |
| 35 | * @param array<string,string> $params | |
| 36 | */ | |
| 37 | public function build(array $params, Link $link): string | |
| 38 | { | |
| 39 | return $this->path; // Pfad enthält ggf. .html oder Unterordner | |
| 40 | } | |
| 41 | } |