private function disparaLiteral(literal $literal, bh $bh) { foreach ($bh->getHechos() as $i => $hecho) { if (strcmp($hecho->getVariable(), $literal->getVariable()) == 0) { return $this->dispara($literal, $hecho); } } return false; }