function AbstractStorage::get
Get all keys from storage or a specific key/value pair
Return value
mixed
File
-
vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ Storage/ AbstractStorage.php, line 44
Class
- AbstractStorage
- WebDriver\AbstractStorage class
Namespace
WebDriver\StorageCode
public function get() {
// get all keys
if (func_num_args() === 0) {
$result = $this->curl('GET', '');
return $result['value'];
}
// get key/value pair
if (func_num_args() === 1) {
return $this->getKey(func_get_arg(0));
}
throw WebDriverException::factory(WebDriverException::UNEXPECTED_PARAMETERS);
}