30 lines
741 B
PHP
30 lines
741 B
PHP
![]() |
<?php
|
||
|
namespace Incoviba\Model;
|
||
|
|
||
|
use DateTimeInterface;
|
||
|
use Incoviba\Common\Ideal;
|
||
|
|
||
|
class Movimiento extends Ideal\Model
|
||
|
{
|
||
|
public Inmobiliaria\Cuenta $cuenta;
|
||
|
public DateTimeInterface $fecha;
|
||
|
public string $glosa;
|
||
|
public string $documento;
|
||
|
public int $cargo;
|
||
|
public int $abono;
|
||
|
public int $saldo;
|
||
|
|
||
|
public function jsonSerialize(): mixed
|
||
|
{
|
||
|
return array_merge(parent::jsonSerialize(), [
|
||
|
'cuenta_id' => $this->cuenta->id,
|
||
|
'fecha' => $this->fecha->format('Y-m-d'),
|
||
|
'glosa' => $this->glosa,
|
||
|
'documento' => $this->documento,
|
||
|
'cargo' => $this->cargo,
|
||
|
'abono' => $this->abono,
|
||
|
'saldo' => $this->saldo
|
||
|
]);
|
||
|
}
|
||
|
}
|