mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
38 lines
582 B
PHP
38 lines
582 B
PHP
<?php
|
|
|
|
/*
|
|
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
namespace Combodo\iTop\Forms\IO\Format;
|
|
|
|
/**
|
|
* String IO format.
|
|
*
|
|
* @package Combodo\iTop\Forms\IO\Format
|
|
* @since 3.3.0
|
|
*/
|
|
class StringIOFormat extends AbstractIOFormat
|
|
{
|
|
public string $sValue;
|
|
|
|
/**
|
|
* @param string $sValue
|
|
*/
|
|
public function __construct(string $sValue)
|
|
{
|
|
$this->sValue = $sValue;
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return $this->sValue;
|
|
}
|
|
|
|
public function jsonSerialize(): mixed
|
|
{
|
|
return $this->sValue;
|
|
}
|
|
}
|