WordPress at Your Fingertips
function is not described

Automattic\WooCommerce

Container::has() public WC 1.0

Returns true if the container can return an entry for the given identifier. Returns false otherwise.

has($id) returning true does not mean that get($id) will not throw an exception. It does however mean that get($id) will not throw a NotFoundExceptionInterface.

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

No Hooks.

Return

true|false.

Usage

$Container = new Container();
$Container->has( $id );
$id(string) (required)
Identifier of the entry to look for.

Code of Container::has() WC 5.8.0

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