f7cloud_client/lib/public/TaskProcessing/ShapeEnumValue.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

52 lines
882 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\TaskProcessing;
/**
* Data object for input output shape enum slot value
* @since 30.0.0
*/
class ShapeEnumValue implements \JsonSerializable {
/**
* @param string $name
* @param string $value
* @since 30.0.0
*/
public function __construct(
private string $name,
private string $value,
) {
}
/**
* @return string
* @since 30.0.0
*/
public function getName(): string {
return $this->name;
}
/**
* @return string
* @since 30.0.0
*/
public function getValue(): string {
return $this->value;
}
/**
* @return array{name: string, value: string}
* @since 30.0.0
*/
public function jsonSerialize(): array {
return [
'name' => $this->getName(),
'value' => $this->getValue(),
];
}
}