Lines
100.00%
8 / 8
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| build | 100.00% | 8 / 8 | 100.00% | 1 / 1 | 1 | ||
| 24 | final class SitemapStrategy implements StrategyInterface | |
| 25 | { | |
| 26 | /** | |
| 27 | * @param array<string,string> $params | |
| 28 | */ | |
| 29 | public function build(array $params, Link $link): string | |
| 30 | { | |
| 31 | $letter = $params[Link::LINK_GET_LETTER] ?? 'A'; | |
| 32 | return ( | |
| 33 | Link::LINK_SITEMAP | |
| 34 | . $letter | |
| 35 | . Link::LINK_HTML_SLASH | |
| 36 | . $params[Link::LINK_GET_LANG] | |
| 37 | . Link::LINK_HTML_EXTENSION | |
| 38 | ); | |
| 39 | } | |
| 40 | } |