src/Entity/User.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Sulu\Bundle\SecurityBundle\Entity\User as SuluUser;
  5. use JMS\Serializer\Annotation\ExclusionPolicy;
  6. /**
  7.  * The following annotations are required for replacing the table of the extended entity:
  8.  *
  9.  * @ORM\Table(name="se_users")
  10.  * @ORM\Entity
  11.  * @ExclusionPolicy("all")
  12.  * 
  13.  */
  14. class User extends SuluUser
  15. {
  16.     /**
  17.      * @ORM\Column(name="enterprise", type="string", length=255, nullable = true)
  18.      */
  19.     protected string $enterprise;
  20.     /**
  21.      * @ORM\Column(name="actorType", type="string", length=255, nullable = true)
  22.      */
  23.     protected string $actorType;
  24.     /**
  25.      * @ORM\Column(name="isVisibleProfile", type="boolean")
  26.      */
  27.     protected bool $isVisibleProfile false;
  28.     /**
  29.      * @ORM\Column(type="string", nullable=true)
  30.      */
  31.     private $typologieStructure;
  32.     /**
  33.      * @ORM\Column(type="string", nullable=true)
  34.      */
  35.     private $fonction;
  36.     /**
  37.      * @ORM\Column(type="string", nullable=true)
  38.      */
  39.     private $fonctionDesc;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $typologieActeurValue 'Aucun';
  44.     public function __construct()
  45.     {
  46.         parent::__construct();
  47.     }
  48.     /**
  49.      * Get enterprise.
  50.      *
  51.      * @return string
  52.      */
  53.     public function getEnterprise()
  54.     {
  55.         return $this->enterprise;
  56.     }
  57.     /**
  58.      * Set enterprise.
  59.      *
  60.      * @param string $enterprise
  61.      *
  62.      * @return self
  63.      */
  64.     public function setEnterprise($enterprise)
  65.     {
  66.         $this->enterprise $enterprise;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get actorType.
  71.      *
  72.      * @return string
  73.      */
  74.     public function getActorType()
  75.     {
  76.         return $this->actorType;
  77.     }
  78.     /**
  79.      * Set actorType.
  80.      *
  81.      * @param string $actorType
  82.      *
  83.      * @return self
  84.      */
  85.     public function setActorType($actorType)
  86.     {
  87.         $this->actorType $actorType;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get isVisibleProfile.
  92.      *
  93.      * @return bool
  94.      */
  95.     public function getIsVisibleProfile()
  96.     {
  97.         return $this->isVisibleProfile;
  98.     }
  99.     /**
  100.      * Set isVisibleProfile.
  101.      *
  102.      * @param string $isVisibleProfile
  103.      *
  104.      * @return self
  105.      */
  106.     public function setIsVisibleProfile($isVisibleProfile)
  107.     {
  108.         $this->isVisibleProfile $isVisibleProfile;
  109.         return $this;
  110.     }
  111.     public function isIsVisibleProfile(): ?bool
  112.     {
  113.         return $this->isVisibleProfile;
  114.     }
  115.     public function getTypologieStructure(): ?string
  116.     {
  117.         return $this->typologieStructure;
  118.     }
  119.     public function setTypologieStructure(?string $typologieStructure): self
  120.     {
  121.         $this->typologieStructure $typologieStructure;
  122.         return $this;
  123.     }
  124.     public function getFonction(): ?string
  125.     {
  126.         return $this->fonction;
  127.     }
  128.     public function setFonction(?string $fonction): self
  129.     {
  130.         $this->fonction $fonction;
  131.         return $this;
  132.     }
  133.     public function getFonctionDesc(): ?string
  134.     {
  135.         return $this->fonctionDesc;
  136.     }
  137.     public function setFonctionDesc(?string $fonctionDesc): self
  138.     {
  139.         $this->fonctionDesc $fonctionDesc;
  140.         return $this;
  141.     }
  142.     public function getTypologieActeurValue(): ?string
  143.     {
  144.         return $this->typologieActeurValue;
  145.     }
  146.     public function setTypologieActeurValue(string $typologieActeurValue): self
  147.     {
  148.         $this->typologieActeurValue $typologieActeurValue;
  149.         return $this;
  150.     }
  151. }