function AbstractStorage::delete
Delete storage or a specific key
@throw \WebDriver\Exception\UnexpectedParameters if unexpected parameters
Return value
\WebDriver\Storage\AbstractStorage
File
-
vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ Storage/ AbstractStorage.php, line 96
Class
- AbstractStorage
- WebDriver\AbstractStorage class
Namespace
WebDriver\StorageCode
public function delete() {
// delete storage
if (func_num_args() === 0) {
$this->curl('DELETE', '');
return $this;
}
// delete key from storage
if (func_num_args() === 1) {
$this->deleteKey(func_get_arg(0));
return $this;
}
throw WebDriverException::factory(WebDriverException::UNEXPECTED_PARAMETERS);
}