src/Entity/MtbColr.php line 740

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Utility\DateUtils;
  4. use DateTime;
  5. use JsonSerializable;
  6. use Symfony\Component\Security\Core\User\UserInterface;
  7. class MtbColr extends AbstractEntityBase
  8. {
  9.     /**
  10.      * @var DateTime
  11.      */
  12.     private $dataCollo;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $gestione;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $serCollo;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $numCollo;
  25.     /**
  26.      * @var string
  27.      */
  28.     private $riga;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $rigaOrd;
  33.     /**
  34.      * @var string
  35.      */
  36.     private $codMart;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $codBarre;
  41.     /**
  42.      * @var string
  43.      */
  44.     private $codCol;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $codTagl;
  49.     /**
  50.      * @var string
  51.      */
  52.     private $partitaMag;
  53.     /**
  54.      * @var string
  55.      */
  56.     private $gestioneRif;
  57.     /**
  58.      * @var string
  59.      */
  60.     private $serColloRif;
  61.     /**
  62.      * @var string
  63.      */
  64.     private $note;
  65.     /**
  66.      * @var DateTime
  67.      */
  68.     private $dataOrd;
  69.     /**
  70.      * @var DateTime
  71.      */
  72.     private $dataColloRif;
  73.     /**
  74.      * @var string
  75.      */
  76.     private $qtaCnf;
  77.     /**
  78.      * @var string
  79.      */
  80.     private $qtaCol;
  81.     /**
  82.      * @var string
  83.      */
  84.     private $numOrd;
  85.     /**
  86.      * @var string
  87.      */
  88.     private $numEtich;
  89.     /**
  90.      * @var string
  91.      */
  92.     private $numColloRif;
  93.     /**
  94.      * @var DateTime
  95.      */
  96.     private $datetimeRow;
  97.     /**
  98.      * @var string
  99.      */
  100.     private $codJcom;
  101.     /**
  102.      * @var string
  103.      */
  104.     private $numCnf;
  105.     /**
  106.      * @var string
  107.      */
  108.     private $causale;
  109.     /**
  110.      * @var string
  111.      */
  112.     private $utente;
  113.     /**
  114.      * @var string
  115.      */
  116.     private $codAnagDoc;
  117.     /**
  118.      * @var string
  119.      */
  120.     private $codDtipDoc;
  121.     /**
  122.      * @var DateTime
  123.      */
  124.     private $dataDoc;
  125.     /**
  126.      * @var string
  127.      */
  128.     private $serDoc;
  129.     /**
  130.      * @var string
  131.      */
  132.     private $numDoc;
  133.     /**
  134.      * @var string
  135.      */
  136.     private $idRigaDoc;
  137.     /**
  138.      * @var string
  139.      */
  140.     private $pesoNettoKg;
  141.     /**
  142.      * @var string
  143.      */
  144.     private $pesoLordoKg;
  145.     /**
  146.      * @return DateTime
  147.      */
  148.     public function getDataCollo(): DateTime
  149.     {
  150.         return $this->dataCollo;
  151.     }
  152.     /**
  153.      * @param DateTime $dataCollo
  154.      */
  155.     public function setDataCollo(DateTime $dataCollo): void
  156.     {
  157.         $this->dataCollo $dataCollo;
  158.     }
  159.     /**
  160.      * @return string
  161.      */
  162.     public function getGestione(): string
  163.     {
  164.         return $this->gestione;
  165.     }
  166.     /**
  167.      * @param string $gestione
  168.      */
  169.     public function setGestione($gestione): void
  170.     {
  171.         $this->gestione $gestione;
  172.     }
  173.     /**
  174.      * @return string
  175.      */
  176.     public function getSerCollo(): string
  177.     {
  178.         return $this->serCollo;
  179.     }
  180.     /**
  181.      * @param string $serCollo
  182.      */
  183.     public function setSerCollo($serCollo): void
  184.     {
  185.         $this->serCollo $serCollo;
  186.     }
  187.     /**
  188.      * @return string
  189.      */
  190.     public function getNumCollo(): string
  191.     {
  192.         return $this->numCollo;
  193.     }
  194.     /**
  195.      * @param string $numCollo
  196.      */
  197.     public function setNumCollo($numCollo): void
  198.     {
  199.         $this->numCollo $numCollo;
  200.     }
  201.     /**
  202.      * @return string
  203.      */
  204.     public function getRiga(): string
  205.     {
  206.         return $this->riga;
  207.     }
  208.     /**
  209.      * @param string $riga
  210.      */
  211.     public function setRiga($riga): void
  212.     {
  213.         $this->riga $riga;
  214.     }
  215.     /**
  216.      * @return string
  217.      */
  218.     public function getRigaOrd(): string
  219.     {
  220.         return $this->rigaOrd;
  221.     }
  222.     /**
  223.      * @param string $rigaOrd
  224.      */
  225.     public function setRigaOrd($rigaOrd): void
  226.     {
  227.         $this->rigaOrd $rigaOrd;
  228.     }
  229.     /**
  230.      * @return string
  231.      */
  232.     public function getCodMart(): string
  233.     {
  234.         return $this->codMart;
  235.     }
  236.     /**
  237.      * @param string $codMart
  238.      */
  239.     public function setCodMart($codMart): void
  240.     {
  241.         $this->codMart $codMart;
  242.     }
  243.     /**
  244.      * @return string
  245.      */
  246.     public function getCodBarre(): string
  247.     {
  248.         return $this->codBarre;
  249.     }
  250.     /**
  251.      * @param string $codBarre
  252.      */
  253.     public function setCodBarre($codBarre): void
  254.     {
  255.         $this->codBarre $codBarre;
  256.     }
  257.     /**
  258.      * @return string
  259.      */
  260.     public function getCodCol(): string
  261.     {
  262.         return $this->codCol;
  263.     }
  264.     /**
  265.      * @param string $codCol
  266.      */
  267.     public function setCodCol($codCol): void
  268.     {
  269.         $this->codCol $codCol;
  270.     }
  271.     /**
  272.      * @return string
  273.      */
  274.     public function getCodTagl(): string
  275.     {
  276.         return $this->codTagl;
  277.     }
  278.     /**
  279.      * @param string $codTagl
  280.      */
  281.     public function setCodTagl($codTagl): void
  282.     {
  283.         $this->codTagl $codTagl;
  284.     }
  285.     /**
  286.      * @return string
  287.      */
  288.     public function getPartitaMag(): string
  289.     {
  290.         return $this->partitaMag;
  291.     }
  292.     /**
  293.      * @param string $partitaMag
  294.      */
  295.     public function setPartitaMag($partitaMag): void
  296.     {
  297.         $this->partitaMag $partitaMag;
  298.     }
  299.     /**
  300.      * @return string
  301.      */
  302.     public function getGestioneRif(): string
  303.     {
  304.         return $this->gestioneRif;
  305.     }
  306.     /**
  307.      * @param string $gestioneRif
  308.      */
  309.     public function setGestioneRif($gestioneRif): void
  310.     {
  311.         $this->gestioneRif $gestioneRif;
  312.     }
  313.     /**
  314.      * @return string
  315.      */
  316.     public function getSerColloRif(): string
  317.     {
  318.         return $this->serColloRif;
  319.     }
  320.     /**
  321.      * @param string $serColloRif
  322.      */
  323.     public function setSerColloRif($serColloRif): void
  324.     {
  325.         $this->serColloRif $serColloRif;
  326.     }
  327.     /**
  328.      * @return string
  329.      */
  330.     public function getNote(): string
  331.     {
  332.         return $this->note;
  333.     }
  334.     /**
  335.      * @param string $note
  336.      */
  337.     public function setNote($note): void
  338.     {
  339.         $this->note $note;
  340.     }
  341.     /**
  342.      * @return DateTime
  343.      */
  344.     public function getDataOrd(): DateTime
  345.     {
  346.         return $this->dataOrd;
  347.     }
  348.     /**
  349.      * @param DateTime $dataOrd
  350.      */
  351.     public function setDataOrd(DateTime $dataOrd): void
  352.     {
  353.         $this->dataOrd $dataOrd;
  354.     }
  355.     /**
  356.      * @return DateTime
  357.      */
  358.     public function getDataColloRif(): DateTime
  359.     {
  360.         return $this->dataColloRif;
  361.     }
  362.     /**
  363.      * @param DateTime $dataColloRif
  364.      */
  365.     public function setDataColloRif(DateTime $dataColloRif): void
  366.     {
  367.         $this->dataColloRif $dataColloRif;
  368.     }
  369.     /**
  370.      * @return string
  371.      */
  372.     public function getQtaCnf(): string
  373.     {
  374.         return $this->qtaCnf;
  375.     }
  376.     /**
  377.      * @param string $qtaCnf
  378.      */
  379.     public function setQtaCnf($qtaCnf): void
  380.     {
  381.         $this->qtaCnf $qtaCnf;
  382.     }
  383.     /**
  384.      * @return string
  385.      */
  386.     public function getQtaCol(): string
  387.     {
  388.         return $this->qtaCol;
  389.     }
  390.     /**
  391.      * @param string $qtaCol
  392.      */
  393.     public function setQtaCol($qtaCol): void
  394.     {
  395.         $this->qtaCol $qtaCol;
  396.     }
  397.     /**
  398.      * @return string
  399.      */
  400.     public function getNumOrd(): string
  401.     {
  402.         return $this->numOrd;
  403.     }
  404.     /**
  405.      * @param string $numOrd
  406.      */
  407.     public function setNumOrd($numOrd): void
  408.     {
  409.         $this->numOrd $numOrd;
  410.     }
  411.     /**
  412.      * @return string
  413.      */
  414.     public function getNumEtich(): string
  415.     {
  416.         return $this->numEtich;
  417.     }
  418.     /**
  419.      * @param string $numEtich
  420.      */
  421.     public function setNumEtich($numEtich): void
  422.     {
  423.         $this->numEtich $numEtich;
  424.     }
  425.     /**
  426.      * @return string
  427.      */
  428.     public function getNumColloRif(): string
  429.     {
  430.         return $this->numColloRif;
  431.     }
  432.     /**
  433.      * @param string $numColloRif
  434.      */
  435.     public function setNumColloRif($numColloRif): void
  436.     {
  437.         $this->numColloRif $numColloRif;
  438.     }
  439.     /**
  440.      * @return DateTime
  441.      */
  442.     public function getDatetimeRow(): DateTime
  443.     {
  444.         return $this->datetimeRow;
  445.     }
  446.     /**
  447.      * @param DateTime $datetimeRow
  448.      */
  449.     public function setDatetimeRow(DateTime $datetimeRow): void
  450.     {
  451.         $this->datetimeRow $datetimeRow;
  452.     }
  453.     /**
  454.      * @return string
  455.      */
  456.     public function getCodJcom(): string
  457.     {
  458.         return $this->codJcom;
  459.     }
  460.     /**
  461.      * @param string $codJcom
  462.      */
  463.     public function setCodJcom($codJcom): void
  464.     {
  465.         $this->codJcom $codJcom;
  466.     }
  467.     /**
  468.      * @return string
  469.      */
  470.     public function getNumCnf(): string
  471.     {
  472.         return $this->numCnf;
  473.     }
  474.     /**
  475.      * @param string $numCnf
  476.      */
  477.     public function setNumCnf($numCnf): void
  478.     {
  479.         $this->numCnf $numCnf;
  480.     }
  481.     /**
  482.      * @return string
  483.      */
  484.     public function getCausale(): string
  485.     {
  486.         return $this->causale;
  487.     }
  488.     /**
  489.      * @param string $causale
  490.      */
  491.     public function setCausale($causale): void
  492.     {
  493.         $this->causale $causale;
  494.     }
  495.     /**
  496.      * @return string
  497.      */
  498.     public function getUtente(): string
  499.     {
  500.         return $this->utente;
  501.     }
  502.     /**
  503.      * @param string $utente
  504.      */
  505.     public function setUtente($utente): void
  506.     {
  507.         $this->utente $utente;
  508.     }
  509.     /**
  510.      * @return string
  511.      */
  512.     public function getCodAnagDoc(): string
  513.     {
  514.         return $this->codAnagDoc;
  515.     }
  516.     /**
  517.      * @param string $codAnagDoc
  518.      */
  519.     public function setCodAnagDoc($codAnagDoc): void
  520.     {
  521.         $this->codAnagDoc $codAnagDoc;
  522.     }
  523.     /**
  524.      * @return string
  525.      */
  526.     public function getCodDtipDoc(): string
  527.     {
  528.         return $this->codDtipDoc;
  529.     }
  530.     /**
  531.      * @param string $codDtipDoc
  532.      */
  533.     public function setCodDtipDoc($codDtipDoc): void
  534.     {
  535.         $this->codDtipDoc $codDtipDoc;
  536.     }
  537.     /**
  538.      * @return DateTime
  539.      */
  540.     public function getDataDoc(): DateTime
  541.     {
  542.         return $this->dataDoc;
  543.     }
  544.     /**
  545.      * @param DateTime $dataDoc
  546.      */
  547.     public function setDataDoc(DateTime $dataDoc): void
  548.     {
  549.         $this->dataDoc $dataDoc;
  550.     }
  551.     /**
  552.      * @return string
  553.      */
  554.     public function getSerDoc(): string
  555.     {
  556.         return $this->serDoc;
  557.     }
  558.     /**
  559.      * @param string $serDoc
  560.      */
  561.     public function setSerDoc($serDoc): void
  562.     {
  563.         $this->serDoc $serDoc;
  564.     }
  565.     /**
  566.      * @return string
  567.      */
  568.     public function getNumDoc(): string
  569.     {
  570.         return $this->numDoc;
  571.     }
  572.     /**
  573.      * @param string $numDoc
  574.      */
  575.     public function setNumDoc($numDoc): void
  576.     {
  577.         $this->numDoc $numDoc;
  578.     }
  579.     /**
  580.      * @return string
  581.      */
  582.     public function getIdRigaDoc(): string
  583.     {
  584.         return $this->idRigaDoc;
  585.     }
  586.     /**
  587.      * @param string $idRigaDoc
  588.      */
  589.     public function setIdRigaDoc($idRigaDoc): void
  590.     {
  591.         $this->idRigaDoc $idRigaDoc;
  592.     }
  593.     /**
  594.      * @return string
  595.      */
  596.     public function getPesoNettoKg(): string
  597.     {
  598.         return $this->pesoNettoKg;
  599.     }
  600.     /**
  601.      * @param string $pesoNettoKg
  602.      */
  603.     public function setPesoNettoKg($pesoNettoKg): void
  604.     {
  605.         $this->pesoNettoKg $pesoNettoKg;
  606.     }
  607.     /**
  608.      * @return string
  609.      */
  610.     public function getPesoLordoKg(): string
  611.     {
  612.         return $this->pesoLordoKg;
  613.     }
  614.     /**
  615.      * @param string $pesoLordoKg
  616.      */
  617.     public function setPesoLordoKg($pesoLordoKg): void
  618.     {
  619.         $this->pesoLordoKg $pesoLordoKg;
  620.     }
  621.     public function fromDto($dto)
  622.     {
  623.         $this->dataCollo $this->getFromDto($dto,"data_collo");
  624.         $this->gestione $this->getFromDto($dto,"gestione");
  625.         $this->serCollo $this->getFromDto($dto,"ser_collo");
  626.         $this->numCollo $this->getFromDto($dto,"num_collo");
  627.         $this->riga $this->getFromDto($dto,"riga");
  628.         $this->rigaOrd $this->getFromDto($dto,"riga_ord");
  629.         $this->codMart $this->getFromDto($dto,"cod_mart");
  630.         $this->codBarre $this->getFromDto($dto,"cod_barre");
  631.         $this->codCol $this->getFromDto($dto,"cod_col");
  632.         $this->codTagl $this->getFromDto($dto,"cod_tagl");
  633.         $this->partitaMag $this->getFromDto($dto,"partita_mag");
  634.         $this->gestioneRif $this->getFromDto($dto,"gestione_rif");
  635.         $this->serColloRif $this->getFromDto($dto,"ser_collo_rif");
  636.         $this->note $this->getFromDto($dto,"note");
  637.         $this->dataOrd $this->getFromDto($dto,"data_ord");
  638.         $this->dataColloRif $this->getFromDto($dto,"data_collo_rif");
  639.         $this->qtaCnf $this->getFromDto($dto,"qta_cnf");
  640.         $this->qtaCol $this->getFromDto($dto,"qta_col");
  641.         $this->numOrd $this->getFromDto($dto,"num_ord");
  642.         $this->numEtich $this->getFromDto($dto,"num_etich");
  643.         $this->numColloRif $this->getFromDto($dto,"num_collo_rif");
  644.         $this->datetimeRow $this->getFromDto($dto,"datetime_row");
  645.         $this->codJcom $this->getFromDto($dto,"cod_jcom");
  646.         $this->numCnf $this->getFromDto($dto,"num_cnf");
  647.         $this->causale $this->getFromDto($dto,"causale");
  648.         $this->utente $this->getFromDto($dto,"utente");
  649.         $this->codAnagDoc $this->getFromDto($dto,"cod_anag_doc");
  650.         $this->codDtipDoc $this->getFromDto($dto,"cod_dtip_doc");
  651.         $this->dataDoc $this->getFromDto($dto,"data_doc");
  652.         $this->serDoc $this->getFromDto($dto,"ser_doc");
  653.         $this->numDoc $this->getFromDto($dto,"num_doc");
  654.         $this->idRigaDoc $this->getFromDto($dto,"id_riga_doc");
  655.         $this->pesoNettoKg $this->getFromDto($dto,"peso_netto_kg");
  656.         $this->pesoLordoKg $this->getFromDto($dto,"peso_lordo_kg");
  657.     }
  658.     public function getType()
  659.     {
  660.         return "mtb_colr";
  661.     }
  662.     public function jsonSerialize()
  663.     {
  664.         return [
  665.             "operation" => $this->getOperation(),
  666.             "type" => $this->getType(),
  667.             "dataCollo" => $this->getForDto($this->dataCollo),
  668.             "gestione" => $this->getForDto($this->gestione),
  669.             "serCollo" => $this->getForDto($this->serCollo),
  670.             "numCollo" => $this->getForDto($this->numCollo),
  671.             "riga" => $this->getForDto($this->riga),
  672.             "rigaOrd" => $this->getForDto($this->rigaOrd),
  673.             "codMart" => $this->getForDto($this->codMart),
  674.             "codBarre" => $this->getForDto($this->codBarre),
  675.             "codCol" => $this->getForDto($this->codCol),
  676.             "codTagl" => $this->getForDto($this->codTagl),
  677.             "partitaMag" => $this->getForDto($this->partitaMag),
  678.             "gestioneRif" => $this->getForDto($this->gestioneRif),
  679.             "serColloRif" => $this->getForDto($this->serColloRif),
  680.             "note" => $this->getForDto($this->note),
  681.             "dataOrd" => $this->getForDto($this->dataOrd),
  682.             "dataColloRif" => $this->getForDto($this->dataColloRif),
  683.             "qtaCnf" => $this->getForDto($this->qtaCnf),
  684.             "qtaCol" => $this->getForDto($this->qtaCol),
  685.             "numOrd" => $this->getForDto($this->numOrd),
  686.             "numEtich" => $this->getForDto($this->numEtich),
  687.             "numColloRif" => $this->getForDto($this->numColloRif),
  688.             "datetimeRow" => $this->getForDto($this->datetimeRow),
  689.             "codJcom" => $this->getForDto($this->codJcom),
  690.             "numCnf" => $this->getForDto($this->numCnf),
  691.             "causale" => $this->getForDto($this->causale),
  692.             "utente" => $this->getForDto($this->utente),
  693.             "codAnagDoc" => $this->getForDto($this->codAnagDoc),
  694.             "codDtipDoc" => $this->getForDto($this->codDtipDoc),
  695.             "dataDoc" => $this->getForDto($this->dataDoc),
  696.             "serDoc" => $this->getForDto($this->serDoc),
  697.             "numDoc" => $this->getForDto($this->numDoc),
  698.             "idRigaDoc" => $this->getForDto($this->idRigaDoc),
  699.             "pesoNettoKg" => $this->getForDto($this->pesoNettoKg),
  700.             "pesoLordoKg" => $this->getForDto($this->pesoLordoKg)
  701.         ];
  702.     }
  703. }