mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
Add ModelReflection Service as dependency injection + tests
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
|
||||
namespace Combodo\iTop\Forms\IO\Format;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
class AttributeIOFormat implements JsonSerializable
|
||||
class AttributeIOFormat extends AbstractIOFormat
|
||||
{
|
||||
public string $sAttributeName;
|
||||
|
||||
@@ -23,4 +22,9 @@ class AttributeIOFormat implements JsonSerializable
|
||||
{
|
||||
return $this->sAttributeName;
|
||||
}
|
||||
|
||||
public static function IsCompatible(string $sOtherFormatClass): bool
|
||||
{
|
||||
return is_a($sOtherFormatClass, AttributeIOFormat::class, true) || is_a($sOtherFormatClass, RawFormat::class, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user