mirror of
https://github.com/Karaka-Management/oms-Workflow.git
synced 2026-02-11 11:48:40 +00:00
reduce serialization of null models
This commit is contained in:
parent
0ef9ea08a3
commit
638bf76362
|
|
@ -35,4 +35,12 @@ final class NullWorkflowInstanceAbstract extends WorkflowInstanceAbstract
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function jsonSerialize() : mixed
|
||||||
|
{
|
||||||
|
return ['id' => $this->id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,4 +36,12 @@ final class NullWorkflowTemplate extends WorkflowTemplate
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function jsonSerialize() : mixed
|
||||||
|
{
|
||||||
|
return ['id' => $this->id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user