mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
- Form SDK implementation - Basic Forms - Dynamics Forms - Basic Blocks + Data Model Block - Form Compilation - Turbo integration
31 lines
526 B
PHP
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;
|
|
}
|
|
}
|