public function isValid() { if ($this->getCodigoCliente() == '' || $this->isCarteiraRSX() && $this->getCodigoCliente() == '' || !parent::isValid()) { return false; } return true; }