mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
N°8772 - Removed RawFormat and OUTPUT_VALUE
This commit is contained in:
30
sources/Forms/IO/Format/StringIOFormat.php
Normal file
30
sources/Forms/IO/Format/StringIOFormat.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Forms\IO\Format;
|
||||
|
||||
class StringIOFormat extends AbstractIOFormat
|
||||
{
|
||||
public string $sValue;
|
||||
|
||||
/**
|
||||
* @param string $sValue
|
||||
*/
|
||||
public function __construct(string $sValue)
|
||||
{
|
||||
$this->sValue = $sValue;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->sValue;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return $this->sValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user