2018-09-13 14:39:03 +02:00
|
|
|
<?php
|
2018-10-29 19:01:00 +01:00
|
|
|
|
2018-09-13 14:39:03 +02:00
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
use App\Entity\Attribut\IdAttribut;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2018-10-25 20:42:52 +02:00
|
|
|
use App\Entity\Attribut\VersionAttribut;
|
2018-09-13 14:39:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-10-03 18:55:33 +02:00
|
|
|
abstract class AbstractEntity implements EntityInterface
|
2018-09-13 14:39:03 +02:00
|
|
|
{
|
2018-10-25 20:42:52 +02:00
|
|
|
use IdAttribut, VersionAttribut;
|
2018-09-13 16:51:58 +02:00
|
|
|
|
2018-09-13 14:39:03 +02:00
|
|
|
/**
|
|
|
|
* @ORM\Id()
|
|
|
|
* @ORM\GeneratedValue
|
|
|
|
* @ORM\Column(type="integer")(strategy="AUTO")
|
2018-09-13 16:51:58 +02:00
|
|
|
*
|
2018-09-13 14:39:03 +02:00
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $id;
|
2018-09-13 22:35:32 +02:00
|
|
|
|
2018-10-25 20:42:52 +02:00
|
|
|
/**
|
|
|
|
* @version @ORM\Column(type="integer")
|
2018-10-29 19:01:00 +01:00
|
|
|
*
|
2018-10-25 20:42:52 +02:00
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $version;
|
|
|
|
|
2018-09-21 19:43:48 +02:00
|
|
|
public function __construct()
|
2018-09-13 22:35:32 +02:00
|
|
|
{
|
|
|
|
}
|
2018-10-31 18:43:42 +01:00
|
|
|
|
|
|
|
public function __toString(): string
|
|
|
|
{
|
|
|
|
return __CLASS__.':'.spl_object_hash($this);
|
|
|
|
}
|
2018-09-13 14:39:03 +02:00
|
|
|
}
|