| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | abstract class SearchVariant extends SiteState |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Stub to supply a check for a class if it has an extension applied |
||
| 19 | * @deprecated use {@link SiteState::hasExtension()} |
||
| 20 | * @param string $class |
||
| 21 | * @param string $extension |
||
| 22 | * @return bool |
||
| 23 | * @throws ReflectionException |
||
| 24 | */ |
||
| 25 | public static function has_extension($class, $extension): bool |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Invoke the WithState method through a stub |
||
| 32 | * @deprecated use {@link SiteState::withState()} |
||
| 33 | * @param $state |
||
| 34 | * @throws ReflectionException |
||
| 35 | */ |
||
| 36 | public static function activate_state($state): void |
||
| 41 |