Clean up obsolete survey editor and DCA code
This commit is contained in:
@@ -10,14 +10,12 @@ final class SurveyEditorData
|
||||
{
|
||||
public string $title = '';
|
||||
public string $description = '';
|
||||
public bool $published = false;
|
||||
|
||||
public static function fromModel(SurveyModel $survey): self
|
||||
{
|
||||
$data = new self();
|
||||
$data->title = (string) $survey->title;
|
||||
$data->description = (string) $survey->description;
|
||||
$data->published = '1' === (string) $survey->published;
|
||||
|
||||
return $data;
|
||||
}
|
||||
@@ -30,7 +28,6 @@ final class SurveyEditorData
|
||||
return [
|
||||
'title' => $this->title,
|
||||
'description' => $this->description,
|
||||
'published' => $this->published,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user