src/Entity/System/permissions.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use App\Repository\System\permissionsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClasspermissionsRepository::class)]
  6. class permissions
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(inversedBy'permissions'targetEntityroles::class)]
  13.     private $roles;
  14.     #[ORM\ManyToOne(inversedBy'permissions'targetEntitysubCategories::class)]
  15.     private $sub_categories;
  16.     #[ORM\Column(type'boolean'nullable:true)]
  17.     private $can_read;
  18.     #[ORM\Column(type'boolean'nullable:true)]
  19.     private $can_create;
  20.     #[ORM\Column(type'boolean'nullable:true)]
  21.     private $can_update;
  22.     #[ORM\Column(type'boolean'nullable:true)]
  23.     private $can_delete;
  24.     #[ORM\Column(type'boolean'nullable:true)]
  25.     private $access;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function setId(?int $id): self
  31.     {
  32.         $this->id $id;
  33.         return $this;
  34.     }
  35.     public function getRoles(): ?roles
  36.     {
  37.         return $this->roles;
  38.     }
  39.     public function setRoles(?roles $roles): self
  40.     {
  41.         $this->roles $roles;
  42.         return $this;
  43.     }
  44.     public function getSubCategories(): ?subCategories
  45.     {
  46.         return $this->sub_categories;
  47.     }
  48.     public function setSubCategories(?subCategories $sub_categories): self
  49.     {
  50.         $this->sub_categories $sub_categories;
  51.         return $this;
  52.     }
  53.     public function getCanRead(): ?bool
  54.     {
  55.         return $this->can_read;
  56.     }
  57.     public function setCanRead(?bool $can_read): self
  58.     {
  59.         $this->can_read $can_read;
  60.         return $this;
  61.     }
  62.     public function getCanCreate(): ?bool
  63.     {
  64.         return $this->can_create;
  65.     }
  66.     public function setCanCreate(?bool $can_create): self
  67.     {
  68.         $this->can_create $can_create;
  69.         return $this;
  70.     }
  71.     public function getCanUpdate(): ?bool
  72.     {
  73.         return $this->can_update;
  74.     }
  75.     public function setCanUpdate(?bool $can_update): self
  76.     {
  77.         $this->can_update $can_update;
  78.         return $this;
  79.     }
  80.     public function getCanDelete(): ?bool
  81.     {
  82.         return $this->can_delete;
  83.     }
  84.     public function setCanDelete(?bool $can_delete): self
  85.     {
  86.         $this->can_delete $can_delete;
  87.         return $this;
  88.     }
  89.     public function getAccess(): ?bool
  90.     {
  91.         return $this->access;
  92.     }
  93.     public function setAccess(?bool $access): self
  94.     {
  95.         $this->access $access;
  96.         return $this;
  97.     }
  98. }