src/Entity/Permission.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass'App\Repository\PermissionRepository')]
  5. class Permission
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\Column(type'string'length255)]
  12.     private ?string $action null;
  13.     public function getId(): ?int
  14.     {
  15.         return $this->id;
  16.     }
  17.     public function getAction(): ?string
  18.     {
  19.         return $this->action;
  20.     }
  21.     public function setAction(string $action): self
  22.     {
  23.         $this->action $action;
  24.         return $this;
  25.     }
  26. }