You appear to be a bot. Output may be restricted
Description
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`.
Usage
$bool = Container::has( $id );
Parameters
- $id
- ( string ) required – Identifier of the entry to look for.
Returns
bool
Source
File name: woocommerce/src/Container.php