<?phpnamespace App\Entity\System;use App\Repository\System\permissionsRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: permissionsRepository::class)]class permissions{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\ManyToOne(inversedBy: 'permissions', targetEntity: roles::class)] private $roles; #[ORM\ManyToOne(inversedBy: 'permissions', targetEntity: subCategories::class)] private $sub_categories; #[ORM\Column(type: 'boolean', nullable:true)] private $can_read; #[ORM\Column(type: 'boolean', nullable:true)] private $can_create; #[ORM\Column(type: 'boolean', nullable:true)] private $can_update; #[ORM\Column(type: 'boolean', nullable:true)] private $can_delete; #[ORM\Column(type: 'boolean', nullable:true)] private $access; public function getId(): ?int { return $this->id; } public function setId(?int $id): self { $this->id = $id; return $this; } public function getRoles(): ?roles { return $this->roles; } public function setRoles(?roles $roles): self { $this->roles = $roles; return $this; } public function getSubCategories(): ?subCategories { return $this->sub_categories; } public function setSubCategories(?subCategories $sub_categories): self { $this->sub_categories = $sub_categories; return $this; } public function getCanRead(): ?bool { return $this->can_read; } public function setCanRead(?bool $can_read): self { $this->can_read = $can_read; return $this; } public function getCanCreate(): ?bool { return $this->can_create; } public function setCanCreate(?bool $can_create): self { $this->can_create = $can_create; return $this; } public function getCanUpdate(): ?bool { return $this->can_update; } public function setCanUpdate(?bool $can_update): self { $this->can_update = $can_update; return $this; } public function getCanDelete(): ?bool { return $this->can_delete; } public function setCanDelete(?bool $can_delete): self { $this->can_delete = $can_delete; return $this; } public function getAccess(): ?bool { return $this->access; } public function setAccess(?bool $access): self { $this->access = $access; return $this; }}