mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-01-29 04:38:40 +00:00
reduce serialization of null models
This commit is contained in:
parent
3337b52826
commit
e565b9b6a9
|
|
@ -35,4 +35,12 @@ final class NullCostCenter extends CostCenter
|
|||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return ['id' => $this->id];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,4 +35,12 @@ final class NullCostObject extends CostObject
|
|||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return ['id' => $this->id];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user