N°8772 - "generic" form controller wip

This commit is contained in:
Eric Espie
2025-12-04 17:06:41 +01:00
parent 1fe6103d4f
commit b315b97e9e
38 changed files with 511 additions and 53 deletions

View File

@@ -0,0 +1,30 @@
<?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);
}
}