mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
28 lines
393 B
PHP
28 lines
393 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|
||
|
|