mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-03 16:14:13 +01:00
25 lines
507 B
PHP
25 lines
507 B
PHP
<?php
|
|
/*
|
|
* @copyright Copyright (C) 2010-2025 Combodo SARL
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
namespace Combodo\iTop\Forms\Block\IO\Converter;
|
|
|
|
use Combodo\iTop\Forms\Block\IO\Format\AttributeIOFormat;
|
|
|
|
/**
|
|
* String to attribute converter.
|
|
*/
|
|
class StringToAttributeConverter extends AbstractConverter
|
|
{
|
|
/** @inheritdoc */
|
|
public function Convert(mixed $oData): ?AttributeIOFormat
|
|
{
|
|
if ($oData === null) {
|
|
return null;
|
|
}
|
|
|
|
return new AttributeIOFormat($oData);
|
|
}
|
|
} |