original_string: private function getParentId($item, $key)
      {
          if (is_array($item)) {
              $result = $item[$key];
          } elseif ($item instanceof \Praxigento\Core\Data) {
              $result = $item->get($key);
          } else {
              $result = $item;
          }
          return $result;
      }
code: private function getParentId($item, $key)
      {
          if (is_array($item)) {
              $result = $item[$key];
          } elseif ($item instanceof \Praxigento\Core\Data) {
              $result = $item->get($key);
          } else {
              $result = $item;
          }
          return $result;
      }
code_tokens: private function getParentId ( $ item , $ key ) { if ( is_array ( $ item ) ) { $ result = $ item [ $ key ] ; } elseif ( $ item instanceof \ Praxigento \ Core \ Data ) { $ result = $ item -> get ( $ key ) ; } else { $ result = $ item ; } return $ result ; }
docstring: Get Parent ID from entry. Entry can be integer, array or Data Object.
  
  @param int|array|\Praxigento\Core\Data $item
  @param string $key
  @return int
docstring_tokens: Get Parent ID from entry . Entry can be integer array or Data Object .