<?php
namespace Incoviba\Model\Movimiento;

use Incoviba\Common\Ideal;
use Incoviba\Model;

class Detalle extends Ideal\Model
{
    public Model\Movimiento $movimiento;
    public ?Model\CentroCosto $centroCosto;
    public ?string $detalle;

    public function jsonSerialize(): mixed
    {
        return [
            'movimiento_id' => $this->movimiento->id,
            'centro_costo' => $this->centroCosto,
            'detalle' => $this->detalle
        ];
    }
}
