mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°8772 - dynamic form
This commit is contained in:
19
sources/Forms/Block/IO/Format/NumberIOFormat.php
Normal file
19
sources/Forms/Block/IO/Format/NumberIOFormat.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\Forms\Block\IO\Format;
|
||||
|
||||
class NumberIOFormat
|
||||
{
|
||||
public mixed $oValue;
|
||||
|
||||
public function __construct(string $oValue)
|
||||
{
|
||||
$this->oValue = $oValue;
|
||||
// validation du format sinon exception
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->oValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user