public function get(array $hashMap, $isNestedKeysName = false) { $pattern = $this->getPattern($isNestedKeysName); $this->mapper->match($pattern, [$hashMap]); $data = $this->mapper->current(); if (empty($data)) { $result = $this->getEmptyArray($pattern); } else { $result = $this->arrayHelper->toTuple($data, $pattern); } return $result; }