OpenXE/classes/Carrier/Go/Data/Package.php

22 lines
544 B
PHP
Raw Normal View History

2025-01-03 21:07:07 +01:00
<?php
// SPDX-FileCopyrightText: 2025 Andreas Palm
//
// SPDX-License-Identifier: AGPL-3.0-only
namespace Xentral\Carrier\Go\Data;
class Package implements \JsonSerializable {
public int $length = 0;
public int $width = 0;
public int $height = 0;
public function jsonSerialize()
{
return [
'length' => $this->length ? (string) $this->length : '',
'width' => $this->width ? (string) $this->width : '',
'height' => $this->height ? (string) $this->height : '',
];
}
}