Automattic\WooCommerce

Container::haspublicWC 1.0

Returns true if the container can return an instance of the given class or false otherwise. See the comment in RuntimeContainer::has.

Method of the class: Container{}

No Hooks.

Returns

true|false.

Usage

$Container = new Container();
$Container->has( $id ): bool;
$id(class-string) (required)
Class name.

Container::has() code WC 10.5.0

public function has( string $id ): bool {
	return $this->container->has( $id );
}