<?php
namespace App\Dto\Spedizione;
use App\Utility\DateUtils;
class ShipmentDto implements \JsonSerializable {
private $rifOrd;
/**
* @var integer
*/
private $numCollo;
/**
* @var \DateTime
*/
private $dataCollo;
/**
* @var string
*/
private $serCollo;
/**
* @var string
*/
private $gestione;
/**
* @var ShipmentRowsDto[]
*/
private $rows = array();
private $note = null;
/**
* @return mixed
*/
public function getRifOrd() {
return $this->rifOrd;
}
/**
* @param mixed $rifOrd
*/
public function setRifOrd($rifOrd): void {
$this->rifOrd = $rifOrd;
}
/**
* @return ShipmentRowsDto[]
*/
public function getRows(): array {
return $this->rows;
}
/**
* @param ShipmentRowsDto[] $rows
*/
public function setRows(array $rows): void {
$this->rows = $rows;
}
/**
* @return null
*/
public function getNote() {
return $this->note;
}
/**
* @param null $note
*/
public function setNote($note): void {
$this->note = $note;
}
/**
* @return int
*/
public function getNumCollo(): ?int {
return $this->numCollo;
}
/**
* @param int $numCollo
*/
public function setNumCollo(?int $numCollo): void {
$this->numCollo = $numCollo;
}
/**
* @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 string
*/
public function getGestione(): ?string {
return $this->gestione;
}
/**
* @param string $gestione
*/
public function setGestione(string $gestione): void {
$this->gestione = $gestione;
}
public function jsonSerialize() {
return [
"rifOrd" => $this->rifOrd,
"numCollo" => $this->numCollo,
"dataCollo" => $this->dataCollo ? $this->dataCollo->format(DateUtils::FORMAT_DATETIME_FROM_REST) : null,
"serCollo" => $this->serCollo,
"gestione" => $this->gestione,
"rows" => $this->rows,
"note" => $this->note
];
}
}