mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 13:24:12 +01:00
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
31 lines
531 B
PHP
31 lines
531 B
PHP
<?php
|
|
|
|
/*
|
|
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
namespace Combodo\iTop\Forms\IO\Format;
|
|
|
|
use Combodo\iTop\Forms\IO\Format\AbstractIOFormat;
|
|
|
|
class IntegerIOFormat extends AbstractIOFormat
|
|
{
|
|
public int $oValue;
|
|
|
|
public function __construct(string $oValue)
|
|
{
|
|
$this->oValue = intval($oValue);
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return strval($this->oValue);
|
|
}
|
|
|
|
public function jsonSerialize(): mixed
|
|
{
|
|
return strval($this->oValue);
|
|
}
|
|
}
|