<?php
namespace App\Entity;
use App\Utility\DateUtils;
use DateTime;
use JsonSerializable;
use Symfony\Component\Security\Core\User\UserInterface;
class MtbColr extends AbstractEntityBase
{
/**
* @var DateTime
*/
private $dataCollo;
/**
* @var string
*/
private $gestione;
/**
* @var string
*/
private $serCollo;
/**
* @var string
*/
private $numCollo;
/**
* @var string
*/
private $riga;
/**
* @var string
*/
private $rigaOrd;
/**
* @var string
*/
private $codMart;
/**
* @var string
*/
private $codBarre;
/**
* @var string
*/
private $codCol;
/**
* @var string
*/
private $codTagl;
/**
* @var string
*/
private $partitaMag;
/**
* @var string
*/
private $gestioneRif;
/**
* @var string
*/
private $serColloRif;
/**
* @var string
*/
private $note;
/**
* @var DateTime
*/
private $dataOrd;
/**
* @var DateTime
*/
private $dataColloRif;
/**
* @var string
*/
private $qtaCnf;
/**
* @var string
*/
private $qtaCol;
/**
* @var string
*/
private $numOrd;
/**
* @var string
*/
private $numEtich;
/**
* @var string
*/
private $numColloRif;
/**
* @var DateTime
*/
private $datetimeRow;
/**
* @var string
*/
private $codJcom;
/**
* @var string
*/
private $numCnf;
/**
* @var string
*/
private $causale;
/**
* @var string
*/
private $utente;
/**
* @var string
*/
private $codAnagDoc;
/**
* @var string
*/
private $codDtipDoc;
/**
* @var DateTime
*/
private $dataDoc;
/**
* @var string
*/
private $serDoc;
/**
* @var string
*/
private $numDoc;
/**
* @var string
*/
private $idRigaDoc;
/**
* @var string
*/
private $pesoNettoKg;
/**
* @var string
*/
private $pesoLordoKg;
/**
* @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($gestione): void
{
$this->gestione = $gestione;
}
/**
* @return string
*/
public function getSerCollo(): string
{
return $this->serCollo;
}
/**
* @param string $serCollo
*/
public function setSerCollo($serCollo): void
{
$this->serCollo = $serCollo;
}
/**
* @return string
*/
public function getNumCollo(): string
{
return $this->numCollo;
}
/**
* @param string $numCollo
*/
public function setNumCollo($numCollo): void
{
$this->numCollo = $numCollo;
}
/**
* @return string
*/
public function getRiga(): string
{
return $this->riga;
}
/**
* @param string $riga
*/
public function setRiga($riga): void
{
$this->riga = $riga;
}
/**
* @return string
*/
public function getRigaOrd(): string
{
return $this->rigaOrd;
}
/**
* @param string $rigaOrd
*/
public function setRigaOrd($rigaOrd): void
{
$this->rigaOrd = $rigaOrd;
}
/**
* @return string
*/
public function getCodMart(): string
{
return $this->codMart;
}
/**
* @param string $codMart
*/
public function setCodMart($codMart): void
{
$this->codMart = $codMart;
}
/**
* @return string
*/
public function getCodBarre(): string
{
return $this->codBarre;
}
/**
* @param string $codBarre
*/
public function setCodBarre($codBarre): void
{
$this->codBarre = $codBarre;
}
/**
* @return string
*/
public function getCodCol(): string
{
return $this->codCol;
}
/**
* @param string $codCol
*/
public function setCodCol($codCol): void
{
$this->codCol = $codCol;
}
/**
* @return string
*/
public function getCodTagl(): string
{
return $this->codTagl;
}
/**
* @param string $codTagl
*/
public function setCodTagl($codTagl): void
{
$this->codTagl = $codTagl;
}
/**
* @return string
*/
public function getPartitaMag(): string
{
return $this->partitaMag;
}
/**
* @param string $partitaMag
*/
public function setPartitaMag($partitaMag): void
{
$this->partitaMag = $partitaMag;
}
/**
* @return string
*/
public function getGestioneRif(): string
{
return $this->gestioneRif;
}
/**
* @param string $gestioneRif
*/
public function setGestioneRif($gestioneRif): void
{
$this->gestioneRif = $gestioneRif;
}
/**
* @return string
*/
public function getSerColloRif(): string
{
return $this->serColloRif;
}
/**
* @param string $serColloRif
*/
public function setSerColloRif($serColloRif): void
{
$this->serColloRif = $serColloRif;
}
/**
* @return string
*/
public function getNote(): string
{
return $this->note;
}
/**
* @param string $note
*/
public function setNote($note): void
{
$this->note = $note;
}
/**
* @return DateTime
*/
public function getDataOrd(): DateTime
{
return $this->dataOrd;
}
/**
* @param DateTime $dataOrd
*/
public function setDataOrd(DateTime $dataOrd): void
{
$this->dataOrd = $dataOrd;
}
/**
* @return DateTime
*/
public function getDataColloRif(): DateTime
{
return $this->dataColloRif;
}
/**
* @param DateTime $dataColloRif
*/
public function setDataColloRif(DateTime $dataColloRif): void
{
$this->dataColloRif = $dataColloRif;
}
/**
* @return string
*/
public function getQtaCnf(): string
{
return $this->qtaCnf;
}
/**
* @param string $qtaCnf
*/
public function setQtaCnf($qtaCnf): void
{
$this->qtaCnf = $qtaCnf;
}
/**
* @return string
*/
public function getQtaCol(): string
{
return $this->qtaCol;
}
/**
* @param string $qtaCol
*/
public function setQtaCol($qtaCol): void
{
$this->qtaCol = $qtaCol;
}
/**
* @return string
*/
public function getNumOrd(): string
{
return $this->numOrd;
}
/**
* @param string $numOrd
*/
public function setNumOrd($numOrd): void
{
$this->numOrd = $numOrd;
}
/**
* @return string
*/
public function getNumEtich(): string
{
return $this->numEtich;
}
/**
* @param string $numEtich
*/
public function setNumEtich($numEtich): void
{
$this->numEtich = $numEtich;
}
/**
* @return string
*/
public function getNumColloRif(): string
{
return $this->numColloRif;
}
/**
* @param string $numColloRif
*/
public function setNumColloRif($numColloRif): void
{
$this->numColloRif = $numColloRif;
}
/**
* @return DateTime
*/
public function getDatetimeRow(): DateTime
{
return $this->datetimeRow;
}
/**
* @param DateTime $datetimeRow
*/
public function setDatetimeRow(DateTime $datetimeRow): void
{
$this->datetimeRow = $datetimeRow;
}
/**
* @return string
*/
public function getCodJcom(): string
{
return $this->codJcom;
}
/**
* @param string $codJcom
*/
public function setCodJcom($codJcom): void
{
$this->codJcom = $codJcom;
}
/**
* @return string
*/
public function getNumCnf(): string
{
return $this->numCnf;
}
/**
* @param string $numCnf
*/
public function setNumCnf($numCnf): void
{
$this->numCnf = $numCnf;
}
/**
* @return string
*/
public function getCausale(): string
{
return $this->causale;
}
/**
* @param string $causale
*/
public function setCausale($causale): void
{
$this->causale = $causale;
}
/**
* @return string
*/
public function getUtente(): string
{
return $this->utente;
}
/**
* @param string $utente
*/
public function setUtente($utente): void
{
$this->utente = $utente;
}
/**
* @return string
*/
public function getCodAnagDoc(): string
{
return $this->codAnagDoc;
}
/**
* @param string $codAnagDoc
*/
public function setCodAnagDoc($codAnagDoc): void
{
$this->codAnagDoc = $codAnagDoc;
}
/**
* @return string
*/
public function getCodDtipDoc(): string
{
return $this->codDtipDoc;
}
/**
* @param string $codDtipDoc
*/
public function setCodDtipDoc($codDtipDoc): void
{
$this->codDtipDoc = $codDtipDoc;
}
/**
* @return DateTime
*/
public function getDataDoc(): DateTime
{
return $this->dataDoc;
}
/**
* @param DateTime $dataDoc
*/
public function setDataDoc(DateTime $dataDoc): void
{
$this->dataDoc = $dataDoc;
}
/**
* @return string
*/
public function getSerDoc(): string
{
return $this->serDoc;
}
/**
* @param string $serDoc
*/
public function setSerDoc($serDoc): void
{
$this->serDoc = $serDoc;
}
/**
* @return string
*/
public function getNumDoc(): string
{
return $this->numDoc;
}
/**
* @param string $numDoc
*/
public function setNumDoc($numDoc): void
{
$this->numDoc = $numDoc;
}
/**
* @return string
*/
public function getIdRigaDoc(): string
{
return $this->idRigaDoc;
}
/**
* @param string $idRigaDoc
*/
public function setIdRigaDoc($idRigaDoc): void
{
$this->idRigaDoc = $idRigaDoc;
}
/**
* @return string
*/
public function getPesoNettoKg(): string
{
return $this->pesoNettoKg;
}
/**
* @param string $pesoNettoKg
*/
public function setPesoNettoKg($pesoNettoKg): void
{
$this->pesoNettoKg = $pesoNettoKg;
}
/**
* @return string
*/
public function getPesoLordoKg(): string
{
return $this->pesoLordoKg;
}
/**
* @param string $pesoLordoKg
*/
public function setPesoLordoKg($pesoLordoKg): void
{
$this->pesoLordoKg = $pesoLordoKg;
}
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->riga = $this->getFromDto($dto,"riga");
$this->rigaOrd = $this->getFromDto($dto,"riga_ord");
$this->codMart = $this->getFromDto($dto,"cod_mart");
$this->codBarre = $this->getFromDto($dto,"cod_barre");
$this->codCol = $this->getFromDto($dto,"cod_col");
$this->codTagl = $this->getFromDto($dto,"cod_tagl");
$this->partitaMag = $this->getFromDto($dto,"partita_mag");
$this->gestioneRif = $this->getFromDto($dto,"gestione_rif");
$this->serColloRif = $this->getFromDto($dto,"ser_collo_rif");
$this->note = $this->getFromDto($dto,"note");
$this->dataOrd = $this->getFromDto($dto,"data_ord");
$this->dataColloRif = $this->getFromDto($dto,"data_collo_rif");
$this->qtaCnf = $this->getFromDto($dto,"qta_cnf");
$this->qtaCol = $this->getFromDto($dto,"qta_col");
$this->numOrd = $this->getFromDto($dto,"num_ord");
$this->numEtich = $this->getFromDto($dto,"num_etich");
$this->numColloRif = $this->getFromDto($dto,"num_collo_rif");
$this->datetimeRow = $this->getFromDto($dto,"datetime_row");
$this->codJcom = $this->getFromDto($dto,"cod_jcom");
$this->numCnf = $this->getFromDto($dto,"num_cnf");
$this->causale = $this->getFromDto($dto,"causale");
$this->utente = $this->getFromDto($dto,"utente");
$this->codAnagDoc = $this->getFromDto($dto,"cod_anag_doc");
$this->codDtipDoc = $this->getFromDto($dto,"cod_dtip_doc");
$this->dataDoc = $this->getFromDto($dto,"data_doc");
$this->serDoc = $this->getFromDto($dto,"ser_doc");
$this->numDoc = $this->getFromDto($dto,"num_doc");
$this->idRigaDoc = $this->getFromDto($dto,"id_riga_doc");
$this->pesoNettoKg = $this->getFromDto($dto,"peso_netto_kg");
$this->pesoLordoKg = $this->getFromDto($dto,"peso_lordo_kg");
}
public function getType()
{
return "mtb_colr";
}
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),
"riga" => $this->getForDto($this->riga),
"rigaOrd" => $this->getForDto($this->rigaOrd),
"codMart" => $this->getForDto($this->codMart),
"codBarre" => $this->getForDto($this->codBarre),
"codCol" => $this->getForDto($this->codCol),
"codTagl" => $this->getForDto($this->codTagl),
"partitaMag" => $this->getForDto($this->partitaMag),
"gestioneRif" => $this->getForDto($this->gestioneRif),
"serColloRif" => $this->getForDto($this->serColloRif),
"note" => $this->getForDto($this->note),
"dataOrd" => $this->getForDto($this->dataOrd),
"dataColloRif" => $this->getForDto($this->dataColloRif),
"qtaCnf" => $this->getForDto($this->qtaCnf),
"qtaCol" => $this->getForDto($this->qtaCol),
"numOrd" => $this->getForDto($this->numOrd),
"numEtich" => $this->getForDto($this->numEtich),
"numColloRif" => $this->getForDto($this->numColloRif),
"datetimeRow" => $this->getForDto($this->datetimeRow),
"codJcom" => $this->getForDto($this->codJcom),
"numCnf" => $this->getForDto($this->numCnf),
"causale" => $this->getForDto($this->causale),
"utente" => $this->getForDto($this->utente),
"codAnagDoc" => $this->getForDto($this->codAnagDoc),
"codDtipDoc" => $this->getForDto($this->codDtipDoc),
"dataDoc" => $this->getForDto($this->dataDoc),
"serDoc" => $this->getForDto($this->serDoc),
"numDoc" => $this->getForDto($this->numDoc),
"idRigaDoc" => $this->getForDto($this->idRigaDoc),
"pesoNettoKg" => $this->getForDto($this->pesoNettoKg),
"pesoLordoKg" => $this->getForDto($this->pesoLordoKg)
];
}
}