mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 17:22:08 +00:00
Optimized LayerIconClassMap
This commit is contained in:
1 parent
b6819b6db0
commit
1aa669b270
3 files changed
+29
-2
No files matched your search
@@ -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