13 public const PIN =
'pinner';
16 public static function get(
string $type,
int $userId, ?
int $spaceId,
string $code =
''): ?
SwitcherInterface
19 $class = static::getClass($type);
25 return $class::get($userId, $spaceId, empty($code) ? $class::getDefaultCode() : $code);
28 private static function getClass(
string $type): ?string
32 static::SMART_TRACKING => SmartTracking::class,
33 static::PIN => Pin::class,
34 static::FOLLOW => Follow::class,