src/Entity/System/Profile.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\ProfileRepository")
  6.  *
  7.  * @ORM\Table(name="ps_profile")
  8.  */
  9. class Profile
  10. {
  11.     public const ROOT_ID 1;
  12.     public const NEW_USER_ID 30;
  13.     public const SUPPORT_ID 12;
  14.     public const COMMERCIAL_ROOT_ID 20;
  15.     public const TECH_SUPPORT_ID 25;
  16.     /** @var int
  17.      * @ORM\Id()
  18.      *
  19.      * @ORM\GeneratedValue(strategy="NONE")
  20.      *
  21.      * @ORM\Column(type="integer", name="id_profile", options={"unsigned":true})
  22.      */
  23.     private $id;
  24.     /** @var string
  25.      * @ORM\Column(type="string", length=25)
  26.      */
  27.     private $name;
  28.     /**
  29.      * @return int
  30.      */
  31.     public function getId(): int
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * @param int $id
  37.      *
  38.      * @return Profile
  39.      */
  40.     public function setId(int $id): Profile
  41.     {
  42.         $this->id $id;
  43.         return $this;
  44.     }
  45.     /**
  46.      * @return string
  47.      */
  48.     public function getName(): string
  49.     {
  50.         return $this->name;
  51.     }
  52.     /**
  53.      * @param string $name
  54.      *
  55.      * @return Profile
  56.      */
  57.     public function setName(string $name): Profile
  58.     {
  59.         $this->name $name;
  60.         return $this;
  61.     }
  62. }