mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
28 lines
740 B
PHP
28 lines
740 B
PHP
<?php
|
|
|
|
namespace Xentral\Carrier\Dhl\Data;
|
|
|
|
use DateTimeImmutable;
|
|
|
|
class ShipmentDetails
|
|
{
|
|
public string $product;
|
|
public string $accountNumber;
|
|
public string $customerReference;
|
|
private string $shipmentDate;
|
|
public string $costCentre;
|
|
public string $returnShipmentAccountNumber;
|
|
public string $returnShipmentReference;
|
|
public ShipmentItem $ShipmentItem;
|
|
public ShipmentService $Service;
|
|
public ShipmentNotification $Notification;
|
|
public Bank $BankData;
|
|
|
|
public function SetShipmentDate(DateTimeImmutable $date): void {
|
|
$this->shipmentDate = $date->format('Y-m-d');
|
|
}
|
|
|
|
public function GetShipmentDate(): DateTimeImmutable {
|
|
return DateTimeImmutable::createFromFormat('Y-m-d', $this->shipmentDate);
|
|
}
|
|
} |