mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-26 05:44:12 +01:00
27 lines
460 B
PHP
27 lines
460 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\Forms\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;
|
|
}
|
|
}
|