src/Entity/UserEnseignantAccountDetail.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserEnseignantAccountDetailRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=UserEnseignantAccountDetailRepository::class)
  8.  */
  9. class UserEnseignantAccountDetail
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\OneToOne(targetEntity=User::class, inversedBy="userEnseignantAccountDetail")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $user;
  22.     /**
  23.      * @ORM\Column(type="json")
  24.      */
  25.     private $situation_pro = [false,false,false,false];
  26.     /**
  27.      * @ORM\Column(type="date", nullable=true)
  28.      */
  29.     private $visite_medicale;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $adresse_entreprise;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $cp_entreprise;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $ville_entreprise;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $siren;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $numero_tva;
  50.     /**
  51.     * @ORM\Column(type="datetime")
  52.     * @Gedmo\Timestampable(on="create")
  53.     */
  54.     private $createdAt;
  55.     /**
  56.      * @ORM\Column(type="datetime")
  57.      * @Gedmo\Timestampable(on="update")
  58.      */
  59.     private $updatedAt;
  60.     /**
  61.      * @ORM\Column(type="string", length=255)
  62.      */
  63.     private $statut "salarie";
  64.     /**
  65.      * @ORM\Column(type="float", nullable=true)
  66.      */
  67.     private $salaire;
  68.     /**
  69.      * @ORM\Column(type="float", nullable=true)
  70.      */
  71.     private $location;
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getUser(): ?User
  77.     {
  78.         return $this->user;
  79.     }
  80.     public function setUser(?User $user): self
  81.     {
  82.         $this->user $user;
  83.         return $this;
  84.     }
  85.     public function getSituationPro(): array
  86.     {
  87.         return $this->situation_pro;
  88.     }
  89.     public function setSituationPro(array $situation_pro): self
  90.     {
  91.         $this->situation_pro $situation_pro;
  92.         return $this;
  93.     }
  94.     public function getVisiteMedicale(): ?\DateTimeInterface
  95.     {
  96.         return $this->visite_medicale;
  97.     }
  98.     public function setVisiteMedicale(?\DateTimeInterface $visite_medicale): self
  99.     {
  100.         $this->visite_medicale $visite_medicale;
  101.         return $this;
  102.     }
  103.     public function getAdresseEntreprise(): ?string
  104.     {
  105.         return $this->adresse_entreprise;
  106.     }
  107.     public function setAdresseEntreprise(?string $adresse_entreprise): self
  108.     {
  109.         $this->adresse_entreprise $adresse_entreprise;
  110.         return $this;
  111.     }
  112.     public function getCpEntreprise(): ?int
  113.     {
  114.         return $this->cp_entreprise;
  115.     }
  116.     public function setCpEntreprise(?int $cp_entreprise): self
  117.     {
  118.         $this->cp_entreprise $cp_entreprise;
  119.         return $this;
  120.     }
  121.     public function getVilleEntreprise(): ?string
  122.     {
  123.         return $this->ville_entreprise;
  124.     }
  125.     public function setVilleEntreprise(?string $ville_entreprise): self
  126.     {
  127.         $this->ville_entreprise $ville_entreprise;
  128.         return $this;
  129.     }
  130.     public function getSiren(): ?string
  131.     {
  132.         return $this->siren;
  133.     }
  134.     public function setSiren(?string $siren): self
  135.     {
  136.         $this->siren $siren;
  137.         return $this;
  138.     }
  139.     public function getNumeroTva(): ?string
  140.     {
  141.         return $this->numero_tva;
  142.     }
  143.     public function setNumeroTva(?string $numero_tva): self
  144.     {
  145.         $this->numero_tva $numero_tva;
  146.         return $this;
  147.     }
  148.     public function getCreatedAt(): ?\DateTimeInterface {
  149.         return $this->createdAt;
  150.     }
  151.     public function setCreatedAt(?\DateTimeInterface $createdAt): self {
  152.         $this->createdAt $createdAt;
  153.                                                                         
  154.         return $this;
  155.     }
  156.     public function getUpdatedAt(): ?\DateTimeInterface {
  157.                                    return $this->updatedAt;
  158.                                }
  159.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self {
  160.         $this->updatedAt $updatedAt;
  161.                                                                         
  162.         return $this;
  163.     }
  164.     public function getStatut(): ?string
  165.     {
  166.         return $this->statut;
  167.     }
  168.     public function isIndependant():bool {
  169.         return $this->getStatut() == "independant";
  170.     }
  171.     public function isSalarie():bool {
  172.         return $this->getStatut() == "salarie";
  173.     }
  174.     public function setStatut(string $statut): self
  175.     {
  176.         $this->statut $statut;
  177.         return $this;
  178.     }
  179.     public function getSalaire(): ?float
  180.     {
  181.         return $this->salaire;
  182.     }
  183.     public function setSalaire(?float $salaire): self
  184.     {
  185.         $this->salaire $salaire;
  186.         return $this;
  187.     }
  188.     public function getLocation(): ?float
  189.     {
  190.         return $this->location;
  191.     }
  192.     public function setLocation(?float $location): self
  193.     {
  194.         $this->location $location;
  195.         return $this;
  196.     }
  197. }