mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized LayerIconClassMap
This commit is contained in:
@@ -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];
|
||||
|
@@ -14,5 +14,5 @@ interface LayerIconClassMapInterface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIconClass(string $layer): string;
|
||||
public static function getIconClass(string $layer): string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user