detalles)) { try { $this->detalles = $this->runFactory('detalles'); } catch (Implement\Exception\EmptyResult) { $this->detalles = null; } } return $this->detalles; } public function jsonSerialize(): mixed { return array_merge(parent::jsonSerialize(), [ 'movimiento_id' => $this->movimiento->id, 'cargo' => $this->cargo, 'abono' => $this->abono, 'detalles' => $this->getDetalles() ]); } }