/** * @param $key * * @return string */ protected function transformKey($key) { list($namespace, $group, $item) = $this->repository->parseKey($key); if (!$namespace) { $namespace = $this->default_namespace; } $collection = "{$namespace}::{$group}"; if ($item) { $collection .= ".{$item}"; } return $collection; }