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