Automattic\WooCommerce\Internal\PushNotifications\Services
DriverAvailabilityService::class_is_present
Whether a class is loadable.
A seam so the driver-detection rule can be tested across every combination of plugin and package presence. Neither class exists in the test environment, so without this a test can only assert the implementation against itself.
Метод класса: DriverAvailabilityService{}
Хуков нет.
Возвращает
bool.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->class_is_present( $class_name ): bool;
- $class_name(строка) (обязательный)
- The fully qualified class name.
Список изменений
| С версии 11.2.0 | Введена. |
Код DriverAvailabilityService::class_is_present() DriverAvailabilityService::class is present WC 11.2.2
protected function class_is_present( string $class_name ): bool {
return class_exists( $class_name );
}