/** * Retorna a guia de pagamento referente a esta competencia, se a competencia ainda estiver aberta entao retorna NULL * * @return boolean */ public function getGuia() { if ($this->aGuia === NULL) { // @TODO Analisar o tipo de guia (dms | nota) $aGuia = Contribuinte_Model_Guia::getNotasRetidasNaCompetenciaDoContribuinte($this->iAnoCompetencia, $this->iMesCompetencia, $this->oContribuinte, NULL); if (empty($aGuia)) { $this->aGuia = NULL; } else { $this->aGuia = $aGuia[0]; } } return $this->aGuia; }