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.
Method of the class: DriverAvailabilityService{}
No Hooks.
Returns
bool.
Usage
// protected - for code of main (parent) or child class $result = $this->class_is_present( $class_name ): bool;
- $class_name(string) (required)
- The fully qualified class name.
Changelog
| Since 11.2.0 | Introduced. |
DriverAvailabilityService::class_is_present() DriverAvailabilityService::class is present code WC 11.3.0
protected function class_is_present( string $class_name ): bool {
return class_exists( $class_name );
}