<?php 

namespace NPS\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Adds ID property to any entity
 * @author Lukas Korinek
 */
trait TIdProperty
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer", name="id")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    public $id;

    /**
     * Gets the ID
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
}

