Automattic\WooCommerce\Vendor\League\Container
Container::has() public WC 1.0
{@inheritdoc}
{} It's a method of the class: Container{}
No Hooks.
Return
Null. Nothing.
Usage
$Container = new Container(); $Container->has( $id ) : bool;
- $id (required)
- -
Code of Container::has() Container::has WC 5.0.0
public function has($id) : bool
{
if ($this->definitions->has($id)) {
return true;
}
if ($this->definitions->hasTag($id)) {
return true;
}
if ($this->providers->provides($id)) {
return true;
}
foreach ($this->delegates as $delegate) {
if ($delegate->has($id)) {
return true;
}
}
return false;
}