original_string: public function get(array $path)
      {
          $current = &$this->hierarchy;
          foreach ($path as $childId) {
              if (!isset($current[$childId])) {
                  return [];
              }
              $current = &$current[$childId];
          }
  
          return $current;
      }
code: public function get(array $path)
      {
          $current = &$this->hierarchy;
          foreach ($path as $childId) {
              if (!isset($current[$childId])) {
                  return [];
              }
              $current = &$current[$childId];
          }
  
          return $current;
      }
code_tokens: public function get ( array $ path ) { $ current = & $ this -> hierarchy ; foreach ( $ path as $ childId ) { if ( ! isset ( $ current [ $ childId ] ) ) { return [ ] ; } $ current = & $ current [ $ childId ] ; } return $ current ; }
docstring: Gets hierarchy by the path
  
  @param string[] $path
  
  @return array
docstring_tokens: Gets hierarchy by the path