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
30 lines
445 B
PHP
30 lines
445 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\Forms\IO\Format;
|
|
|
|
/**
|
|
* Number IO format.
|
|
*
|
|
* @package Combodo\iTop\Forms\IO\Format
|
|
* @since 3.3.0
|
|
*/
|
|
class NumberIOFormat extends AbstractIOFormat
|
|
{
|
|
public mixed $oValue;
|
|
|
|
public function __construct(string $oValue)
|
|
{
|
|
$this->oValue = $oValue;
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return strval($this->oValue);
|
|
}
|
|
|
|
public function jsonSerialize(): mixed
|
|
{
|
|
return strval($this->oValue);
|
|
}
|
|
}
|