data[$key]) ? $this->data[$key] : $default; } /** * {@inheritdoc} * * @SuppressWarnings(PHPMD.UnusedFormalParameter) Lifetime not supported for generic storage. */ public function set($key, $value, $lifetime = 0) { if (isset($this->data[$key])) { return false; } $this->data[$key] = $value; return true; } /** * {@inheritdoc} */ public function unsetData($key) { if (isset($this->data[$key])) { unset($this->data[$key]); return true; } return false; } }