mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-15 16:21:14 +01:00
22 lines
544 B
PHP
22 lines
544 B
PHP
<?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 : '',
|
|
];
|
|
}
|
|
} |