mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-15 16:21:14 +01:00
21 lines
492 B
PHP
21 lines
492 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2025 Andreas Palm
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
namespace Xentral\Carrier\Go\Data;
|
|
|
|
class Pickup implements \JsonSerializable {
|
|
public \DateTime $dateFrom;
|
|
public \DateTime $dateTill;
|
|
|
|
public function jsonSerialize()
|
|
{
|
|
return [
|
|
'date' => $this->dateFrom->format('d.m.Y'),
|
|
'timeFrom' => $this->dateFrom->format('H:i'),
|
|
'timeTill' => $this->dateTill->format('H:i'),
|
|
];
|
|
}
|
|
} |