mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Removed unnecessary getIDString() function in AbstractDBElement.
This commit is contained in:
parent
a3af55d4e2
commit
8b6fe757a0
26 changed files with 3 additions and 219 deletions
|
@ -87,14 +87,6 @@ abstract class AbstractDBElement implements \JsonSerializable
|
|||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ID as an string, defined by the element class.
|
||||
* This should have a form like P000014, for a part with ID 14.
|
||||
*
|
||||
* @return string The ID as a string;
|
||||
*/
|
||||
abstract public function getIDString(): string;
|
||||
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return ['@id' => $this->getID()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue