/** * Método que retorna o nome da tabela de um objeto de negócio * @param negocio $negocio * @return string */ protected function pegarTabela(negocio $negocio) { try { $persistente = $negocio->pegarPersistente(); if ($negocio instanceof negocioPadrao) { $arPersistente = $persistente->pegarEstrutura(); return $arPersistente['nomeTabela']; } return ''; } catch (Exception $e) { return ''; } }