for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Del\Passport\Traits;
use Del\Passport\Entity\Role;
trait HasRole
{
#[ORM\ManyToOne(targetEntity: Role::class)]
private Role $role;
public function getRole(): Role
return $this->role;
}
public function setRole(Role $role): void
$this->role = $role;