mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Used PHP_CS_Fixer with symfony preset on codebase.
This commit is contained in:
parent
0f3ba9b6a8
commit
e2f7aafa2d
43 changed files with 971 additions and 1068 deletions
|
@ -1,9 +1,10 @@
|
|||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
*
|
||||
* Part-DB Version 0.4+ "nextgen"
|
||||
* Copyright (C) 2016 - 2019 Jan Böhmer
|
||||
* https://github.com/jbtronics
|
||||
* https://github.com/jbtronics.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -18,7 +19,6 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*
|
||||
*/
|
||||
|
||||
namespace App\Entity;
|
||||
|
@ -39,7 +39,6 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
*/
|
||||
abstract class DBElement
|
||||
{
|
||||
|
||||
/** @var int The Identification number for this part. This value is unique for the element in this table.
|
||||
* @ORM\Column(type="integer")
|
||||
* @ORM\Id()
|
||||
|
@ -49,27 +48,26 @@ abstract class DBElement
|
|||
|
||||
/**
|
||||
* Get the ID. The ID can be zero, or even negative (for virtual elements). If an elemenent is virtual, can be
|
||||
* checked with isVirtualElement()
|
||||
* checked with isVirtualElement().
|
||||
*
|
||||
* @return integer the ID of this element
|
||||
* @return int the ID of this element
|
||||
*/
|
||||
final public function getID() : int
|
||||
final public function getID(): int
|
||||
{
|
||||
return (int) $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;
|
||||
abstract public function getIDString(): string;
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
//Set ID to null, so that an new entry is created
|
||||
$this->id = null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue