WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal\DependencyManagement

ExtendedContainer::is_anonymous_class() protected WC 1.0

Check if a class name corresponds to an anonymous class.

{} It's a method of the class: ExtendedContainer{}

No Hooks.

Return

true|false. True if the name corresponds to an anonymous class.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_anonymous_class( $class_name ): bool;
$class_name(string) (required)
The class name to check.

Code of ExtendedContainer::is_anonymous_class() WC 5.9.0

protected function is_anonymous_class( string $class_name ): bool {
	return StringUtil::starts_with( $class_name, 'class@anonymous' );
}