Automattic\WooCommerce
Container::has
Returns true if the container can return an instance of the given class or false otherwise. See the comment in RuntimeContainer::has.
Метод класса: Container{}
Хуков нет.
Возвращает
true|false.
Использование
$Container = new Container(); $Container->has( $id ): bool;
- $id(class-string) (обязательный)
- Class name.
Код Container::has() Container::has WC 10.8.1
public function has( string $id ): bool {
return $this->container->has( $id );
}