src/Entity/System/access.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use App\Repository\System\accessRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassaccessRepository::class)]
  6. class access
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'boolean',nullabletrue)]
  13.     private $able;
  14.     #[ORM\ManyToOne(inversedBy'accesses'targetEntitycategories::class)]
  15.     private $categories;
  16.     #[ORM\ManyToOne(inversedBy'accesses'targetEntityroles::class)]
  17.     private $roles;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function setId(?int $id): self
  23.     {
  24.         $this->id $id;
  25.         return $this;
  26.     }
  27.     public function getAble(): ?bool
  28.     {
  29.         return $this->able;
  30.     }
  31.     public function setAble(?bool $able): self
  32.     {
  33.         $this->able $able;
  34.         return $this;
  35.     }
  36.     public function getCategoriesId(): ?categories
  37.     {
  38.         return $this->categories;
  39.     }
  40.     public function setCategoriesId(?categories $categories): self
  41.     {
  42.         $this->categories $categories;
  43.         return $this;
  44.     }
  45.     public function getRolesId(): ?roles
  46.     {
  47.         return $this->roles;
  48.     }
  49.     public function setRolesId(?roles $roles): self
  50.     {
  51.         $this->roles $roles;
  52.         return $this;
  53.     }
  54. }