reduce serialization of null models

This commit is contained in:
Dennis Eichhorn 2022-11-09 23:02:52 +01:00
parent 60899ab5d2
commit 2aec6b2c94
7 changed files with 56 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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