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;
    }
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;
    }
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 ; }
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
Get Parent ID from entry . Entry can be integer array or Data Object .