<?php

namespace DhlPolskaVendor\Octolize\DhlPolska\API\WebApi\Struct;

use JsonSerializable;
/**
 * ShipmentTime structure for createShipment.
 */
class ShipmentTime implements JsonSerializable
{
    /** @var string */
    private string $shipment_date;
    /** @var string */
    private string $shipment_start_hour;
    /** @var string */
    private string $shipment_end_hour;
    /**
     * ShipmentTime constructor.
     *
     * @param string $shipment_date
     * @param string $shipment_start_hour
     * @param string $shipment_end_hour
     */
    public function __construct(string $shipment_date, string $shipment_start_hour, string $shipment_end_hour)
    {
        $this->shipment_date = $shipment_date;
        $this->shipment_start_hour = $shipment_start_hour;
        $this->shipment_end_hour = $shipment_end_hour;
    }
    /**
     * @return array
     */
    public function jsonSerialize(): array
    {
        return ['shipmentDate' => $this->shipment_date, 'shipmentStartHour' => $this->shipment_start_hour, 'shipmentEndHour' => $this->shipment_end_hour];
    }
}
