src/Dto/Spedizione/ShipmentDto.php line 135

Open in your IDE?
  1. <?php
  2. namespace App\Dto\Spedizione;
  3. use App\Utility\DateUtils;
  4. class ShipmentDto implements \JsonSerializable {
  5.     private $rifOrd;
  6.     /**
  7.      * @var integer
  8.      */
  9.     private $numCollo;
  10.     /**
  11.      * @var \DateTime
  12.      */
  13.     private $dataCollo;
  14.     /**
  15.      * @var string
  16.      */
  17.     private $serCollo;
  18.     /**
  19.      * @var string
  20.      */
  21.     private $gestione;
  22.     /**
  23.      * @var ShipmentRowsDto[]
  24.      */
  25.     private $rows = array();
  26.     private $note null;
  27.     /**
  28.      * @return mixed
  29.      */
  30.     public function getRifOrd() {
  31.         return $this->rifOrd;
  32.     }
  33.     /**
  34.      * @param mixed $rifOrd
  35.      */
  36.     public function setRifOrd($rifOrd): void {
  37.         $this->rifOrd $rifOrd;
  38.     }
  39.     /**
  40.      * @return ShipmentRowsDto[]
  41.      */
  42.     public function getRows(): array {
  43.         return $this->rows;
  44.     }
  45.     /**
  46.      * @param ShipmentRowsDto[] $rows
  47.      */
  48.     public function setRows(array $rows): void {
  49.         $this->rows $rows;
  50.     }
  51.     /**
  52.      * @return null
  53.      */
  54.     public function getNote() {
  55.         return $this->note;
  56.     }
  57.     /**
  58.      * @param null $note
  59.      */
  60.     public function setNote($note): void {
  61.         $this->note $note;
  62.     }
  63.     /**
  64.      * @return int
  65.      */
  66.     public function getNumCollo(): ?int {
  67.         return $this->numCollo;
  68.     }
  69.     /**
  70.      * @param int $numCollo
  71.      */
  72.     public function setNumCollo(?int $numCollo): void {
  73.         $this->numCollo $numCollo;
  74.     }
  75.     /**
  76.      * @return \DateTime
  77.      */
  78.     public function getDataCollo(): ?\DateTime {
  79.         return $this->dataCollo;
  80.     }
  81.     /**
  82.      * @param \DateTime $dataCollo
  83.      */
  84.     public function setDataCollo(\DateTime $dataCollo): void {
  85.         $this->dataCollo $dataCollo;
  86.     }
  87.     /**
  88.      * @return string
  89.      */
  90.     public function getSerCollo(): ?string {
  91.         return $this->serCollo;
  92.     }
  93.     /**
  94.      * @param string $serCollo
  95.      */
  96.     public function setSerCollo(string $serCollo): void {
  97.         $this->serCollo $serCollo;
  98.     }
  99.     /**
  100.      * @return string
  101.      */
  102.     public function getGestione(): ?string {
  103.         return $this->gestione;
  104.     }
  105.     /**
  106.      * @param string $gestione
  107.      */
  108.     public function setGestione(string $gestione): void {
  109.         $this->gestione $gestione;
  110.     }
  111.     public function jsonSerialize() {
  112.         return [
  113.             "rifOrd" => $this->rifOrd,
  114.             "numCollo" => $this->numCollo,
  115.             "dataCollo" => $this->dataCollo $this->dataCollo->format(DateUtils::FORMAT_DATETIME_FROM_REST) : null,
  116.             "serCollo" => $this->serCollo,
  117.             "gestione" => $this->gestione,
  118.             "rows" => $this->rows,
  119.             "note" => $this->note
  120.         ];
  121.     }
  122. }