mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 07:13:11 +08:00
34 lines
554 B
PHP
34 lines
554 B
PHP
<?php
|
|
namespace Shlinkio\Shlink\Common\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
abstract class AbstractEntity
|
|
{
|
|
/**
|
|
* @var int
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
* @ORM\Column(name="id", type="bigint", options={"unsigned"=true})
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @param int $id
|
|
* @return $this
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
return $this;
|
|
}
|
|
}
|