Automattic\WooCommerce\Vendor\League\Container

Container::has()publicWC 1.0

{@inheritdoc}

Method of the class: Container{}

No Hooks.

Return

null. Nothing.

Usage

$Container = new Container();
$Container->has( $id ) : bool;
$id (required)
-

Container::has() code WC 7.1.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;
}