Optimized LayerIconClassMap

This commit is contained in:
Kevin Frantz
2019-03-16 20:35:14 +01:00
parent b6819b6db0
commit 1aa669b270
3 changed files with 29 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ final class LayerIconClassMap implements LayerIconClassMapInterface
*
* @see \Infinito\Domain\TwigManagement\LayerIconClassMapInterface::getIconClass()
*/
public function getIconClass(string $layer): string
public static function getIconClass(string $layer): string
{
if (key_exists($layer, self::LAYER_ICON_CLASS_MAP)) {
return self::LAYER_ICON_CLASS_MAP[$layer];

View File

@@ -14,5 +14,5 @@ interface LayerIconClassMapInterface
*
* @return string
*/
public function getIconClass(string $layer): string;
public static function getIconClass(string $layer): string;
}