for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Del\Passport\Entity;
use Bone\BoneDoctrine\Traits\HasCreatedAtDate;
use Bone\BoneDoctrine\Traits\HasId;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
class PassportRole
{
use HasId;
#[ORM\Column(type: 'integer')]
private int $userId;
#[ORM\ManyToOne(targetEntity: Role::class)]
private Role $role;
#[ORM\Column(type: 'integer', nullable: true)]
private $entityId;
private ?int $approvedById = null;
use HasCreatedAtDate;
public function getUserId(): int
return $this->userId;
}
public function setUserId(int $userId): void
$this->userId = $userId;
public function getRole(): Role
return $this->role;
public function setRole(Role $role): void
$this->role = $role;
public function getEntityId(): ?int
return $this->entityId;
public function setEntityId(int $entityId): void
$this->entityId = $entityId;
public function getApprovedById(): ?int
return $this->approvedById;
public function setApprovedById(?int $approvedById): void
$this->approvedById = $approvedById;