<?php
namespace App\Entity;
use DateTime;
class MtbCols extends AbstractEntityBase {
public const CAUSALE_CREAZIONE = 0;
public const CAUSALE_RETTIFICA = 1;
public const CAUSALE_POSIZIONAMENTO = 2;
public const CAUSALE_VERSAMENTO = 3;
/**
* @var DateTime
*/
private $dataCollo;
/**
* @var string
*/
private $gestione;
/**
* @var string
*/
private $serCollo;
/**
* @var string
*/
private $numCollo;
/**
* @var string
*/
private $idRiga;
/**
* @var string
*/
private $codMdep;
/**
* @var DateTime
*/
private $dataMove;
/**
* @var string
*/
private $modificatoDa;
/**
* @var string
*/
private $posizione;
/**
* @var string
*/
private $causale;
/**
* @return DateTime
*/
public function getDataCollo(): DateTime {
return $this->dataCollo;
}
/**
* @param DateTime $dataCollo
*/
public function setDataCollo(DateTime $dataCollo): void {
$this->dataCollo = $dataCollo;
}
/**
* @return string
*/
public function getGestione(): string {
return $this->gestione;
}
/**
* @param string $gestione
*/
public function setGestione(string $gestione): void {
$this->gestione = $gestione;
}
/**
* @return string
*/
public function getSerCollo(): string {
return $this->serCollo;
}
/**
* @param string $serCollo
*/
public function setSerCollo(string $serCollo): void {
$this->serCollo = $serCollo;
}
/**
* @return string
*/
public function getNumCollo(): string {
return $this->numCollo;
}
/**
* @param string $numCollo
*/
public function setNumCollo(string $numCollo): void {
$this->numCollo = $numCollo;
}
/**
* @return string
*/
public function getIdRiga(): string {
return $this->idRiga;
}
/**
* @param string $idRiga
*/
public function setIdRiga(string $idRiga): void {
$this->idRiga = $idRiga;
}
/**
* @return string
*/
public function getCodMdep(): string {
return $this->codMdep;
}
/**
* @param string $codMdep
*/
public function setCodMdep(string $codMdep): void {
$this->codMdep = $codMdep;
}
/**
* @return DateTime
*/
public function getDataMove(): DateTime {
return $this->dataMove;
}
/**
* @param DateTime $dataMove
*/
public function setDataMove(DateTime $dataMove): void {
$this->dataMove = $dataMove;
}
/**
* @return string
*/
public function getModificatoDa(): string {
return $this->modificatoDa;
}
/**
* @param string $modificatoDa
*/
public function setModificatoDa(string $modificatoDa): void {
$this->modificatoDa = $modificatoDa;
}
/**
* @return string
*/
public function getPosizione(): string {
return $this->posizione;
}
/**
* @param string $posizione
*/
public function setPosizione(string $posizione): void {
$this->posizione = $posizione;
}
/**
* @return string
*/
public function getCausale(): string {
return $this->causale;
}
/**
* @param string $causale
*/
public function setCausale(string $causale): void {
$this->causale = $causale;
}
public function fromDto($dto) {
$this->dataCollo = $this->getFromDto($dto, "data_collo");
$this->gestione = $this->getFromDto($dto, "gestione");
$this->serCollo = $this->getFromDto($dto, "ser_collo");
$this->numCollo = $this->getFromDto($dto, "num_Collo");
$this->idRiga = $this->getFromDto($dto, "id_Riga");
$this->codMdep = $this->getFromDto($dto, "cod_mdep");
$this->dataMove = $this->getFromDto($dto, "data_move");
$this->modificatoDa = $this->getFromDto($dto, "modificato_da");
$this->posizione = $this->getFromDto($dto, "posizione");
$this->causale = $this->getFromDto($dto, "causale");
}
public function getType() {
return "mtb_cols";
}
public function jsonSerialize() {
return [
"operation" => $this->getOperation(),
"type" => $this->getType(),
"dataCollo" => $this->getForDto($this->dataCollo),
"gestione" => $this->getForDto($this->gestione),
"serCollo" => $this->getForDto($this->serCollo),
"numCollo" => $this->getForDto($this->numCollo),
"idRiga" => $this->getForDto($this->idRiga),
"codMdep" => $this->getForDto($this->codMdep),
"dataMove" => $this->getForDto($this->dataMove),
"modificatoDa" => $this->getForDto($this->modificatoDa),
"posizione" => $this->getForDto($this->posizione),
"causale" => $this->getForDto($this->causale)
];
}
}