2018-09-06 12:58:36 +02:00
|
|
|
<?php
|
2018-09-12 22:25:22 +02:00
|
|
|
|
2018-09-06 13:52:34 +02:00
|
|
|
namespace App\Entity\Attribut;
|
2018-09-06 12:58:36 +02:00
|
|
|
|
2018-09-13 02:24:25 +02:00
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
2018-09-06 12:58:36 +02:00
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-09-12 22:25:22 +02:00
|
|
|
trait IdAttribut
|
|
|
|
{
|
2018-09-06 12:58:36 +02:00
|
|
|
/**
|
2018-09-13 02:24:25 +02:00
|
|
|
* @ORM\Id()
|
2018-09-06 12:58:36 +02:00
|
|
|
* @ORM\GeneratedValue
|
|
|
|
* @ORM\Column(type="integer")(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
protected $id;
|
2018-09-12 22:25:22 +02:00
|
|
|
|
2018-09-06 12:58:36 +02:00
|
|
|
public function setId(int $id): void
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
2018-09-12 22:25:22 +02:00
|
|
|
|
2018-09-06 12:58:36 +02:00
|
|
|
public function getId(): int
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
}
|