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.
Метод класса: ContainerInterface{}
Хуков нет.
Возвращает
true|false
.
Использование
$ContainerInterface = new ContainerInterface(); $ContainerInterface->has( $id );
- $id(строка) (обязательный)
- Identifier of the entry to look for.
Код ContainerInterface::has() ContainerInterface::has WC 9.3.3
public function has(string $id);