<?php
namespace App\Entity;
use App\Repository\RolesAuthorizedActionsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RolesAuthorizedActionsRepository::class)
*/
class RolesAuthorizedActions
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Roles::class, inversedBy="rolesAuthorizedActions")
* @ORM\JoinColumn(nullable=false)
*/
private $role;
/**
* @ORM\ManyToOne(targetEntity=AuthorizedActions::class, inversedBy="rolesAuthorizedActions")
* @ORM\JoinColumn(nullable=false)
*/
private $authorizedAction;
/**
* @ORM\Column(type="boolean")
*/
private $deleted = false;
public function getId(): ?int
{
return $this->id;
}
public function getRole(): ?Roles
{
return $this->role;
}
public function setRole(?Roles $role): self
{
$this->role = $role;
return $this;
}
public function getAuthorizedAction(): ?AuthorizedActions
{
return $this->authorizedAction;
}
public function setAuthorizedAction(?AuthorizedActions $authorizedAction): self
{
$this->authorizedAction = $authorizedAction;
return $this;
}
public function isDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(bool $deleted): self
{
$this->deleted = $deleted;
return $this;
}
}