src/Entity/MtbCols.php line 222

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. class MtbCols extends AbstractEntityBase {
  5.     public const CAUSALE_CREAZIONE 0;
  6.     public const CAUSALE_RETTIFICA 1;
  7.     public const CAUSALE_POSIZIONAMENTO 2;
  8.     public const CAUSALE_VERSAMENTO 3;
  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 $idRiga;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $codMdep;
  33.     /**
  34.      * @var DateTime
  35.      */
  36.     private $dataMove;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $modificatoDa;
  41.     /**
  42.      * @var string
  43.      */
  44.     private $posizione;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $causale;
  49.     /**
  50.      * @return DateTime
  51.      */
  52.     public function getDataCollo(): DateTime {
  53.         return $this->dataCollo;
  54.     }
  55.     /**
  56.      * @param DateTime $dataCollo
  57.      */
  58.     public function setDataCollo(DateTime $dataCollo): void {
  59.         $this->dataCollo $dataCollo;
  60.     }
  61.     /**
  62.      * @return string
  63.      */
  64.     public function getGestione(): string {
  65.         return $this->gestione;
  66.     }
  67.     /**
  68.      * @param string $gestione
  69.      */
  70.     public function setGestione(string $gestione): void {
  71.         $this->gestione $gestione;
  72.     }
  73.     /**
  74.      * @return string
  75.      */
  76.     public function getSerCollo(): string {
  77.         return $this->serCollo;
  78.     }
  79.     /**
  80.      * @param string $serCollo
  81.      */
  82.     public function setSerCollo(string $serCollo): void {
  83.         $this->serCollo $serCollo;
  84.     }
  85.     /**
  86.      * @return string
  87.      */
  88.     public function getNumCollo(): string {
  89.         return $this->numCollo;
  90.     }
  91.     /**
  92.      * @param string $numCollo
  93.      */
  94.     public function setNumCollo(string $numCollo): void {
  95.         $this->numCollo $numCollo;
  96.     }
  97.     /**
  98.      * @return string
  99.      */
  100.     public function getIdRiga(): string {
  101.         return $this->idRiga;
  102.     }
  103.     /**
  104.      * @param string $idRiga
  105.      */
  106.     public function setIdRiga(string $idRiga): void {
  107.         $this->idRiga $idRiga;
  108.     }
  109.     /**
  110.      * @return string
  111.      */
  112.     public function getCodMdep(): string {
  113.         return $this->codMdep;
  114.     }
  115.     /**
  116.      * @param string $codMdep
  117.      */
  118.     public function setCodMdep(string $codMdep): void {
  119.         $this->codMdep $codMdep;
  120.     }
  121.     /**
  122.      * @return DateTime
  123.      */
  124.     public function getDataMove(): DateTime {
  125.         return $this->dataMove;
  126.     }
  127.     /**
  128.      * @param DateTime $dataMove
  129.      */
  130.     public function setDataMove(DateTime $dataMove): void {
  131.         $this->dataMove $dataMove;
  132.     }
  133.     /**
  134.      * @return string
  135.      */
  136.     public function getModificatoDa(): string {
  137.         return $this->modificatoDa;
  138.     }
  139.     /**
  140.      * @param string $modificatoDa
  141.      */
  142.     public function setModificatoDa(string $modificatoDa): void {
  143.         $this->modificatoDa $modificatoDa;
  144.     }
  145.     /**
  146.      * @return string
  147.      */
  148.     public function getPosizione(): string {
  149.         return $this->posizione;
  150.     }
  151.     /**
  152.      * @param string $posizione
  153.      */
  154.     public function setPosizione(string $posizione): void {
  155.         $this->posizione $posizione;
  156.     }
  157.     /**
  158.      * @return string
  159.      */
  160.     public function getCausale(): string {
  161.         return $this->causale;
  162.     }
  163.     /**
  164.      * @param string $causale
  165.      */
  166.     public function setCausale(string $causale): void {
  167.         $this->causale $causale;
  168.     }
  169.     public function fromDto($dto) {
  170.         $this->dataCollo $this->getFromDto($dto"data_collo");
  171.         $this->gestione $this->getFromDto($dto"gestione");
  172.         $this->serCollo $this->getFromDto($dto"ser_collo");
  173.         $this->numCollo $this->getFromDto($dto"num_Collo");
  174.         $this->idRiga $this->getFromDto($dto"id_Riga");
  175.         $this->codMdep $this->getFromDto($dto"cod_mdep");
  176.         $this->dataMove $this->getFromDto($dto"data_move");
  177.         $this->modificatoDa $this->getFromDto($dto"modificato_da");
  178.         $this->posizione $this->getFromDto($dto"posizione");
  179.         $this->causale $this->getFromDto($dto"causale");
  180.     }
  181.     public function getType() {
  182.         return "mtb_cols";
  183.     }
  184.     public function jsonSerialize() {
  185.         return [
  186.             "operation" => $this->getOperation(),
  187.             "type" => $this->getType(),
  188.             "dataCollo" => $this->getForDto($this->dataCollo),
  189.             "gestione" => $this->getForDto($this->gestione),
  190.             "serCollo" => $this->getForDto($this->serCollo),
  191.             "numCollo" => $this->getForDto($this->numCollo),
  192.             "idRiga" => $this->getForDto($this->idRiga),
  193.             "codMdep" => $this->getForDto($this->codMdep),
  194.             "dataMove" => $this->getForDto($this->dataMove),
  195.             "modificatoDa" => $this->getForDto($this->modificatoDa),
  196.             "posizione" => $this->getForDto($this->posizione),
  197.             "causale" => $this->getForDto($this->causale)
  198.         ];
  199.     }
  200. }