uf ?? ($this->uf > 0.0 ? $this->uf : 1); return $this->valor / (($moneda === Pago::UF) ? $uf : 1); } public function jsonSerialize(): mixed { return array_merge(parent::jsonSerialize(), [ 'valor' => $this->valor, 'banco' => $this->banco ?? '', 'tipo_pago' => $this->tipoPago ?? '', 'identificador' => $this->identificador ?? '', 'fecha' => $this->fecha->format('Y-m-d H:i:s') ?? '', 'uf' => $this->uf ?? 1, 'pagador' => $this->pagador ?? '', 'asociado' => $this->asociado ?? '' ]); } }