| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | trait EmbedKeyValueTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var KeyValueInterface |
||
| 16 | */ |
||
| 17 | protected $innerKeyValue; |
||
| 18 | |||
| 19 | public function set(string $key, $value) |
||
| 20 | { |
||
| 21 | $this->innerKeyValue->set($key, $value); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function delete(string $key) |
||
| 25 | { |
||
| 26 | $this->innerKeyValue->delete($key); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function get(string $key) |
||
| 30 | { |
||
| 31 | return $this->innerKeyValue->get($key); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function exists(string $key) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return KeyValueInterface |
||
| 41 | */ |
||
| 42 | public function getInnerKeyValue() |
||
| 47 |