reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent 14b4bbd970
commit 9b2eda60f1
5 changed files with 40 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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