Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
DHLEX-65: Simplify DateTime handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Melzer committed Dec 5, 2019
1 parent e4c570a commit c203544
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Api/Data/Request/Rate/ShipmentDetailsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getContentType();
/**
* Returns the ship timestamp.
*
* @return int|string|\DateTime
* @return \DateTime
*/
public function getReadyAtTimestamp();

Expand Down
2 changes: 1 addition & 1 deletion src/Api/Data/Request/Shipment/ShipmentDetailsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getContentType();
/**
* Returns the ship timestamp.
*
* @return int|string|\DateTime
* @return \DateTime
*/
public function getReadyAtTimestamp();

Expand Down
2 changes: 1 addition & 1 deletion src/Api/RateRequestBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function setContentType($contentType);
/**
* Sets the shipment timestamp.
*
* @param int|string|\DateTime $pickupTime The shipment time
* @param \DateTime $pickupTime The shipment time
*
* @return RateRequestBuilderInterface
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Request/Rate/ShipmentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ShipmentDetails implements ShipmentDetailsInterface
/**
* The ship time.
*
* @var int|string|\DateTime
* @var \DateTime
*/
private $readyAtTimestamp;

Expand All @@ -102,7 +102,7 @@ class ShipmentDetails implements ShipmentDetailsInterface
* @param bool $unscheduledPickup Whether this is a scheduled pickup or not
* @param string $termsOfTrade The terms of trade
* @param string $contentType The content type
* @param int|string|\DateTime $readyAtTimestamp The ship time
* @param \DateTime $readyAtTimestamp The ship time
* @param bool $requestValueAddedServices If the Rate Response should contain the value added services
* @param bool $nextBusinessDayIndicator
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Request/Shipment/ShipmentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ShipmentDetails implements ShipmentDetailsInterface
/**
* The ship time.
*
* @var int|string|\DateTime
* @var \DateTime
*/
private $readyAtTimestamp;

Expand Down Expand Up @@ -133,7 +133,7 @@ class ShipmentDetails implements ShipmentDetailsInterface
* @param bool $unscheduledPickup
* @param string $termsOfTrade
* @param string $contentType
* @param int|string|\DateTime $readyAtTimestamp
* @param \DateTime $readyAtTimestamp
* @param int $numberOfPieces
* @param string $currencyCode
* @param string $description
Expand Down

0 comments on commit c203544

Please sign in to comment.