1 | <?php namespace AdammBalogh\KeyValueStore\Implementation; |
||
10 | trait ValueTrait |
||
11 | { |
||
12 | use AdapterTrait; |
||
13 | |||
14 | /** |
||
15 | * Gets the value of a key. |
||
16 | * |
||
17 | * @param string $key |
||
18 | * |
||
19 | * @return mixed The value of the key. |
||
20 | * |
||
21 | * @throws \InvalidArgumentException |
||
22 | * @throws KeyNotFoundException |
||
23 | * @throws InternalException |
||
24 | */ |
||
25 | public function get($key) |
||
37 | |||
38 | /** |
||
39 | * Sets the value of a key. |
||
40 | * |
||
41 | * @param string $key |
||
42 | * @param mixed $value Can be any of serializable data type. |
||
43 | * |
||
44 | * @return bool True if the set was successful, false if it was unsuccessful. |
||
45 | * |
||
46 | * @throws \InvalidArgumentException |
||
47 | * @throws InternalException |
||
48 | */ |
||
49 | public function set($key, $value) |
||
60 | } |
||
61 |