Files
iTop/sources/Forms/IO/Format/AttributeIOFormat.php
Benjamin Dalsass 81f056a91c validator component
2025-12-01 07:58:28 +01:00

31 lines
526 B
PHP

<?php
namespace Combodo\iTop\Forms\IO\Format;
/**
* Attribute IO format.
*
* @package Combodo\iTop\Forms\IO\Format
* @since 3.3.0
*/
class AttributeIOFormat extends AbstractIOFormat
{
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;
}
}