mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-17 23:56:03 +02:00
Optimized Entity draft
This commit is contained in:
27
application/src/Entity/Attribut/IdAttribut.php
Normal file
27
application/src/Entity/Attribut/IdAttribut.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait IdAttribut {
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
* @ORM\Column(type="integer")(strategy="AUTO")
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
public function setId(int $id): void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user