for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace Fousky\Traits\Id;
use Doctrine\ORM\Mapping as ORM;
/**
* @author Lukáš Brzák <[email protected]>
*/
trait IdTrait
{
* @var int|null
*
* @ORM\Id()
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(name="id", type="integer")
protected $id;
* @return int|null
public function getId(): ?int
return $this->id;
}