Files
iTop/sources/Forms/Block/IO/Format/AttributeIOFormat.php
2025-10-30 14:16:36 +01:00

26 lines
465 B
PHP

<?php
namespace Combodo\iTop\Forms\Block\IO\Format;
use JsonSerializable;
class AttributeIOFormat implements JsonSerializable
{
public string $sAttributeName;
public function __construct(string $sAttributeName)
{
$this->sAttributeName = $sAttributeName;
// validation du format sinon exception
}
public function __toString(): string
{
return $this->sAttributeName;
}
public function jsonSerialize(): mixed
{
return $this->sAttributeName;
}
}