Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Caching

SimpleStringCache::has │ public │ WC 1.0

Checks whether there is an entry stored for the given key.

Метод класса: SimpleStringCache{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$SimpleStringCache = new SimpleStringCache();
$SimpleStringCache->has( $key ): bool;
$key(строка) (обязательный)
the key to check; must not be empty.

Код SimpleStringCache::has() WC 11.2.1

public function has(string $key): bool
{
    $this->assertNotEmptyKey($key);

    return isset($this->values[$key]);
}