<?php
namespace App\Entity;
use DateTime;
class MtbColt extends AbstractEntityBase {
/**
* @var string
*/
private $gestione;
/**
* @var DateTime
*/
private $dataCollo;
/**
* @var string
*/
private $serCollo;
/**
* @var int
*/
private $numCollo;
/**
* @var string
*/
private $rifOrd;
/**
* @var string
*/
private $codAnag = null;
/**
* @var string
*/
private $codVdes;
/**
* @var string
*/
private $codMdep;
/**
* @var string
*/
private $codVlis;
/**
* @var string
*/
private $codDtip;
/**
* @var string
*/
private $codTcol;
/**
* @var string
*/
private $serDoc;
/**
* @var string
*/
private $filtroOrdini;
/**
* @var string
*/
private $preparatoDa;
/**
* @var string
*/
private $annotazioni;
/**
* @var string
*/
private $posizione;
/**
* @var string
*/
private $codDtipProvv;
/**
* @var string
*/
private $serDocProvv;
/**
* @var string
*/
private $codJfas;
/**
* @var DateTime
*/
private $dataOrd;
/**
* @var DateTime
*/
private $dataDoc;
/**
* @var DateTime
*/
private $oraInizPrep;
/**
* @var DateTime
*/
private $oraFinePrep;
/**
* @var DateTime
*/
private $dataDocProvv;
/**
* @var DateTime
*/
private $dataVers;
/**
* @var int
*/
private $segno;
/**
* @var int
*/
private $numOrd;
/**
* @var int
*/
private $numDoc;
/**
* @var int
*/
private $numDocProvv;
/**
* @var float
*/
private $pesoKg;
/**
* @var float
*/
private $lunghezzaCm;
/**
* @var float
*/
private $larghezzaCm;
/**
* @var float
*/
private $altezzaCm;
/**
* @var float
*/
private $pesoNettoKg;
/**
* @var DateTime
*/
private $dataDistribuzione;
/**
* @var string
*/
private $barcodeUl;
/**
* @var MtbColr[]
*/
private $mtbColr = [];
/**
* @var MtbCols[]
*/
private $mtbCols = [];
/**
* @param string|null $gestione
* @param DateTime|null $dataCollo
* @param string|null $serCollo
* @param int|null $numCollo
*/
public function __construct(string $gestione = null, DateTime $dataCollo = null, string $serCollo = null, int $numCollo = null) {
$this->gestione = $gestione;
$this->dataCollo = $dataCollo;
$this->serCollo = $serCollo;
$this->numCollo = $numCollo;
}
/**
* @return string
*/
public function getGestione(): string {
return $this->gestione;
}
/**
* @param string $gestione
*/
public function setGestione(string $gestione): void {
$this->gestione = $gestione;
}
/**
* @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 getSerCollo(): string {
return $this->serCollo;
}
/**
* @param string $serCollo
*/
public function setSerCollo(string $serCollo): void {
$this->serCollo = $serCollo;
}
/**
* @return int
*/
public function getNumCollo(): int {
return $this->numCollo;
}
/**
* @param int $numCollo
*/
public function setNumCollo(?int $numCollo): void {
$this->numCollo = $numCollo;
}
/**
* @return string
*/
public function getRifOrd(): ?string {
return $this->rifOrd;
}
/**
* @param string $rifOrd
*/
public function setRifOrd(?string $rifOrd): void {
$this->rifOrd = $rifOrd;
}
/**
* @return string
*/
public function getCodAnag(): ?string {
return $this->codAnag;
}
/**
* @param string $codAnag
*/
public function setCodAnag(?string $codAnag): void {
$this->codAnag = $codAnag;
}
/**
* @return string
*/
public function getCodVdes(): string {
return $this->codVdes;
}
/**
* @param string $codVdes
*/
public function setCodVdes(string $codVdes): void {
$this->codVdes = $codVdes;
}
/**
* @return string
*/
public function getCodMdep(): string {
return $this->codMdep;
}
/**
* @param string $codMdep
*/
public function setCodMdep(string $codMdep): void {
$this->codMdep = $codMdep;
}
/**
* @return string
*/
public function getCodVlis(): string {
return $this->codVlis;
}
/**
* @param string $codVlis
*/
public function setCodVlis(string $codVlis): void {
$this->codVlis = $codVlis;
}
/**
* @return string
*/
public function getCodDtip(): string {
return $this->codDtip;
}
/**
* @param string $codDtip
*/
public function setCodDtip(string $codDtip): void {
$this->codDtip = $codDtip;
}
/**
* @return string
*/
public function getCodTcol(): string {
return $this->codTcol;
}
/**
* @param string $codTcol
*/
public function setCodTcol(string $codTcol): void {
$this->codTcol = $codTcol;
}
/**
* @return string
*/
public function getSerDoc(): string {
return $this->serDoc;
}
/**
* @param string $serDoc
*/
public function setSerDoc(string $serDoc): void {
$this->serDoc = $serDoc;
}
/**
* @return string
*/
public function getFiltroOrdini(): string {
return $this->filtroOrdini;
}
/**
* @param string $filtroOrdini
*/
public function setFiltroOrdini(string $filtroOrdini): void {
$this->filtroOrdini = $filtroOrdini;
}
/**
* @return string
*/
public function getPreparatoDa(): string {
return $this->preparatoDa;
}
/**
* @param string $preparatoDa
*/
public function setPreparatoDa(string $preparatoDa): void {
$this->preparatoDa = $preparatoDa;
}
/**
* @return string
*/
public function getAnnotazioni(): string {
return $this->annotazioni;
}
/**
* @param string|null $annotazioni
*/
public function setAnnotazioni(?string $annotazioni): void {
$this->annotazioni = $annotazioni;
}
/**
* @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 getCodDtipProvv(): string {
return $this->codDtipProvv;
}
/**
* @param string|null $codDtipProvv
*/
public function setCodDtipProvv(string $codDtipProvv = null): void {
$this->codDtipProvv = $codDtipProvv;
}
/**
* @return string
*/
public function getSerDocProvv(): string {
return $this->serDocProvv;
}
/**
* @param string $serDocProvv
*/
public function setSerDocProvv(string $serDocProvv): void {
$this->serDocProvv = $serDocProvv;
}
/**
* @return string
*/
public function getCodJfas(): string {
return $this->codJfas;
}
/**
* @param string $codJfas
*/
public function setCodJfas(string $codJfas): void {
$this->codJfas = $codJfas;
}
/**
* @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 getDataDoc(): DateTime {
return $this->dataDoc;
}
/**
* @param DateTime $dataDoc
*/
public function setDataDoc(DateTime $dataDoc): void {
$this->dataDoc = $dataDoc;
}
/**
* @return DateTime
*/
public function getOraInizPrep(): DateTime {
return $this->oraInizPrep;
}
/**
* @param DateTime $oraInizPrep
*/
public function setOraInizPrep(DateTime $oraInizPrep): void {
$this->oraInizPrep = $oraInizPrep;
}
/**
* @return DateTime
*/
public function getOraFinePrep(): DateTime {
return $this->oraFinePrep;
}
/**
* @param DateTime $oraFinePrep
*/
public function setOraFinePrep(DateTime $oraFinePrep): void {
$this->oraFinePrep = $oraFinePrep;
}
/**
* @return DateTime
*/
public function getDataDocProvv(): DateTime {
return $this->dataDocProvv;
}
/**
* @param DateTime $dataDocProvv
*/
public function setDataDocProvv(DateTime $dataDocProvv): void {
$this->dataDocProvv = $dataDocProvv;
}
/**
* @return DateTime
*/
public function getDataVers(): DateTime {
return $this->dataVers;
}
/**
* @param DateTime $dataVers
*/
public function setDataVers(DateTime $dataVers): void {
$this->dataVers = $dataVers;
}
/**
* @return int
*/
public function getSegno(): int {
return $this->segno;
}
/**
* @param int $segno
*/
public function setSegno(int $segno): void {
$this->segno = $segno;
}
/**
* @return int
*/
public function getNumOrd(): int {
return $this->numOrd;
}
/**
* @param int $numOrd
*/
public function setNumOrd(int $numOrd): void {
$this->numOrd = $numOrd;
}
/**
* @return int
*/
public function getNumDoc(): int {
return $this->numDoc;
}
/**
* @param int $numDoc
*/
public function setNumDoc(int $numDoc): void {
$this->numDoc = $numDoc;
}
/**
* @return int
*/
public function getNumDocProvv(): int {
return $this->numDocProvv;
}
/**
* @param int $numDocProvv
*/
public function setNumDocProvv(int $numDocProvv): void {
$this->numDocProvv = $numDocProvv;
}
/**
* @return float
*/
public function getPesoKg(): float {
return $this->pesoKg;
}
/**
* @param float $pesoKg
*/
public function setPesoKg(float $pesoKg): void {
$this->pesoKg = $pesoKg;
}
/**
* @return float
*/
public function getLunghezzaCm(): float {
return $this->lunghezzaCm;
}
/**
* @param float $lunghezzaCm
*/
public function setLunghezzaCm(float $lunghezzaCm): void {
$this->lunghezzaCm = $lunghezzaCm;
}
/**
* @return float
*/
public function getLarghezzaCm(): float {
return $this->larghezzaCm;
}
/**
* @param float $larghezzaCm
*/
public function setLarghezzaCm(float $larghezzaCm): void {
$this->larghezzaCm = $larghezzaCm;
}
/**
* @return float
*/
public function getAltezzaCm(): float {
return $this->altezzaCm;
}
/**
* @param float $altezzaCm
*/
public function setAltezzaCm(float $altezzaCm): void {
$this->altezzaCm = $altezzaCm;
}
/**
* @return float
*/
public function getPesoNettoKg(): float {
return $this->pesoNettoKg;
}
/**
* @param float $pesoNettoKg
*/
public function setPesoNettoKg(float $pesoNettoKg): void {
$this->pesoNettoKg = $pesoNettoKg;
}
/**
* @return DateTime
*/
public function getDataDistribuzione(): DateTime {
return $this->dataDistribuzione;
}
/**
* @param DateTime $dataDistribuzione
*/
public function setDataDistribuzione(DateTime $dataDistribuzione): void {
$this->dataDistribuzione = $dataDistribuzione;
}
/**
* @return MtbColr[]
*/
public function getMtbColr(): array {
return $this->mtbColr;
}
/**
* @param MtbColr[] $mtbColr
*/
public function setMtbColr(array $mtbColr): void {
$this->mtbColr = $mtbColr;
}
public function addMtbColr(MtbColr $mtbColr) {
$this->mtbColr[] = $mtbColr;
}
/**
* @return MtbCols[]
*/
public function getMtbCols(): array {
return $this->mtbCols;
}
/**
* @param MtbCols[] $mtbCols
*/
public function setMtbCols(array $mtbCols): void {
$this->mtbCols = $mtbCols;
}
public function addMtbCols(MtbCols $mtbCols) {
$this->mtbCols[] = $mtbCols;
}
public function getBarcodeUl(): string {
return $this->barcodeUl;
}
public function setBarcodeUl(string $barcodeUl): void {
$this->barcodeUl = $barcodeUl;
}
public function getBarcodeUlFormatted() {
if (isset($this->dataCollo, $this->serCollo, $this->numCollo)) {
return "U" . $this->dataCollo->format("Y") . str_pad($this->numCollo, 7, "0", STR_PAD_LEFT) . $this->serCollo;
} else {
return null;
}
}
public function fromDto($dto) {
$this->gestione = $this->getFromDto($dto, "gestione");
$this->dataCollo = $this->getFromDto($dto, "dataCollo");
$this->serCollo = $this->getFromDto($dto, "serCollo");
$this->numCollo = $this->getFromDto($dto, "numCollo");
$this->rifOrd = $this->getFromDto($dto, "rifOrd");
$this->codAnag = $this->getFromDto($dto, "codAnag");
$this->codVdes = $this->getFromDto($dto, "codVdes");
$this->codMdep = $this->getFromDto($dto, "codMdep");
$this->codVlis = $this->getFromDto($dto, "codVlis");
$this->codDtip = $this->getFromDto($dto, "codDtip");
$this->codTcol = $this->getFromDto($dto, "codTcol");
$this->serDoc = $this->getFromDto($dto, "serDoc");
$this->filtroOrdini = $this->getFromDto($dto, "filtroOrdini");
$this->preparatoDa = $this->getFromDto($dto, "preparatoDa");
$this->annotazioni = $this->getFromDto($dto, "annotazioni");
$this->posizione = $this->getFromDto($dto, "posizione");
$this->codDtipProvv = $this->getFromDto($dto, "codDtipProvv");
$this->serDocProvv = $this->getFromDto($dto, "serDocProvv");
$this->codJfas = $this->getFromDto($dto, "codJfas");
$this->dataOrd = $this->getFromDto($dto, "dataOrd");
$this->dataDoc = $this->getFromDto($dto, "dataDoc");
$this->oraInizPrep = $this->getFromDto($dto, "oraInizPrep");
$this->oraFinePrep = $this->getFromDto($dto, "oraFinePrep");
$this->dataDocProvv = $this->getFromDto($dto, "dataDocProvv");
$this->dataVers = $this->getFromDto($dto, "dataVers");
$this->segno = $this->getFromDto($dto, "segno");
$this->numOrd = $this->getFromDto($dto, "numOrd");
$this->numDoc = $this->getFromDto($dto, "numDoc");
$this->numDocProvv = $this->getFromDto($dto, "numDocProvv");
$this->pesoKg = $this->getFromDto($dto, "pesoKg");
$this->lunghezzaCm = $this->getFromDto($dto, "lunghezzaCm");
$this->larghezzaCm = $this->getFromDto($dto, "larghezzaCm");
$this->altezzaCm = $this->getFromDto($dto, "altezzaCm");
$this->pesoNettoKg = $this->getFromDto($dto, "pesoNettoKg");
$this->dataDistribuzione = $this->getFromDto($dto, "dataDistribuzione");
$this->barcodeUl = $this->getFromDto($dto, "barcodeUl");
}
public static function fromJson($json) {
$mtbColt = new MtbColt();
$mtbColt->fromDto($json);
return $mtbColt;
}
public function getType() {
return "mtb_colt";
}
public function jsonSerialize() {
return [
"operation" => $this->getOperation(),
"type" => $this->getType(),
"gestione" => $this->getForDto($this->gestione),
"dataCollo" => $this->getForDto($this->dataCollo),
"serCollo" => $this->getForDto($this->serCollo),
"numCollo" => $this->getForDto($this->numCollo),
"rifOrd" => $this->getForDto($this->rifOrd),
"codAnag" => $this->getForDto($this->codAnag),
"codVdes" => $this->getForDto($this->codVdes),
"codMdep" => $this->getForDto($this->codMdep),
"codVlis" => $this->getForDto($this->codVlis),
"codDtip" => $this->getForDto($this->codDtip),
"codTcol" => $this->getForDto($this->codTcol),
"serDoc" => $this->getForDto($this->serDoc),
"filtroOrdini" => $this->getForDto($this->filtroOrdini),
"preparatoDa" => $this->getForDto($this->preparatoDa),
"annotazioni" => $this->getForDto($this->annotazioni),
"posizione" => $this->getForDto($this->posizione),
"codDtipProvv" => $this->getForDto($this->codDtipProvv),
"serDocProvv" => $this->getForDto($this->serDocProvv),
"codJfas" => $this->getForDto($this->codJfas),
"dataOrd" => $this->getForDto($this->dataOrd),
"dataDoc" => $this->getForDto($this->dataDoc),
"oraInizPrep" => $this->getForDto($this->oraInizPrep),
"oraFinePrep" => $this->getForDto($this->oraFinePrep),
"dataDocProvv" => $this->getForDto($this->dataDocProvv),
"dataVers" => $this->getForDto($this->dataVers),
"segno" => $this->getForDto($this->segno),
"numOrd" => $this->getForDto($this->numOrd),
"numDoc" => $this->getForDto($this->numDoc),
"numDocProvv" => $this->getForDto($this->numDocProvv),
"pesoKg" => $this->getForDto($this->pesoKg),
"lunghezzaCm" => $this->getForDto($this->lunghezzaCm),
"larghezzaCm" => $this->getForDto($this->larghezzaCm),
"altezzaCm" => $this->getForDto($this->altezzaCm),
"pesoNettoKg" => $this->getForDto($this->pesoNettoKg),
"barcodeUl" => $this->getForDto($this->barcodeUl),
"dataDistribuzione" => $this->getForDto($this->dataDistribuzione),
"mtbColr" => $this->getForDto($this->mtbColr),
"mtbCols" => $this->getForDto($this->mtbCols),
];
}
}