reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent b66bbbdaef
commit f6238c9dc0
4 changed files with 32 additions and 0 deletions

View File

@ -36,4 +36,12 @@ final class NullEventAttribute extends EventAttribute
parent::__construct();
$this->id = $id;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -35,4 +35,12 @@ final class NullEventAttributeType extends EventAttributeType
{
$this->id = $id;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -35,4 +35,12 @@ final class NullEventAttributeTypeL11n extends EventAttributeTypeL11n
{
$this->id = $id;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}

View File

@ -35,4 +35,12 @@ final class NullEventAttributeValue extends EventAttributeValue
{
$this->id = $id;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return ['id' => $this->id];
}
}