for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Bone\BoneDoctrine\Traits;
use Doctrine\ORM\Mapping as ORM;
trait HasId
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue
*/
private int $id;
public function getId(): int
return $this->id;
}
public function setId(int $id): void
$this->id = $id;