Automattic\WooCommerce\Vendor\Psr\Container
ContainerInterface::has()
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.
Method of the class: ContainerInterface{}
No Hooks.
Return
true|false
.
Usage
$ContainerInterface = new ContainerInterface(); $ContainerInterface->has( $id );
- $id(string) (required)
- Identifier of the entry to look for.
ContainerInterface::has() ContainerInterface::has code WC 9.8.2
public function has(string $id);