src/Entity/Vetoadom/Appel.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * Appel
  7.  *
  8.  * @ORM\Table(name="appel", indexes={@ORM\Index(name="FK_appel_appel_type", columns={"appel_type_id"}), @ORM\Index(name="FK_appel_client", columns={"client_id"}), @ORM\Index(name="FK_appel_secteur", columns={"secteur_id"}), @ORM\Index(name="FK_appel_referant", columns={"referant_id"}), @ORM\Index(name="FK_appel_langue", columns={"langue_id"}), @ORM\Index(name="FK_appel_ville", columns={"ville_id"}), @ORM\Index(name="FK_appel_secteur_zone", columns={"secteur_zone_id"})})
  9.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\AppelRepository")
  10.  * @ORM\HasLifecycleCallbacks()
  11.  */
  12. class Appel
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var int
  24.      *
  25.      * @ORM\Column(name="regulateur_id", type="integer", nullable=false)
  26.      */
  27.     private $regulateurId;
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Column(name="superviseur_id", type="integer", nullable=false)
  32.      */
  33.     private $superviseurId;
  34.     /**
  35.      * @var int|null
  36.      *
  37.      * @ORM\Column(name="astreinte_chirurgie_id", type="integer", nullable=true)
  38.      */
  39.     private $astreinteChirurgieId;
  40.     /**
  41.      * @var int|null
  42.      *
  43.      * @ORM\Column(name="vetcoach_id", type="integer", nullable=true)
  44.      */
  45.     private $vetcoachId;
  46.     /**
  47.      * @var int
  48.      *
  49.      * @ORM\Column(name="saisie_user_id", type="integer", nullable=false)
  50.      */
  51.     private $saisieUserId;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="motif_appel", type="text", length=65535, nullable=false)
  56.      * @Assert\NotBlank(
  57.      *        groups={"motifAppel"},
  58.      *        message="common.blank"
  59.      *     )
  60.      * @Assert\Length(
  61.      *        groups={"motifAppel"},
  62.      *        max=65535,
  63.      *        maxMessage="common.too_long"
  64.      *     )
  65.     */
  66.     private $motifAppel;
  67.     /**
  68.      * @var string|null
  69.      *
  70.      * @ORM\Column(name="information_interne", type="text", length=65535, nullable=true)
  71.      * @Assert\Length(
  72.      *         groups={"informationInterne"},
  73.      *         max=65535,
  74.      *         maxMessage="common.too_long"
  75.      *      )
  76.      */
  77.     private $informationInterne;
  78.     /**
  79.      * @var bool
  80.      *
  81.      * @ORM\Column(name="demande_de_nouvelle_faite", type="boolean", nullable=false, options={"default"="0"})
  82.      */
  83.     private $demandeDeNouvelleFaite false;
  84.     /**
  85.      * @var \DateTime
  86.      *
  87.      * @ORM\Column(name="date_creation", type="datetime", nullable=false)
  88.      */
  89.     private $dateCreation;
  90.     /**
  91.      * @var \DateTime
  92.      *
  93.      * @ORM\Column(name="date_modification", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  94.      */
  95.     private $dateModification;
  96.     /**
  97.      * @var \Langue
  98.      *
  99.      * @ORM\ManyToOne(targetEntity="Langue")
  100.      * @ORM\JoinColumns({
  101.      *   @ORM\JoinColumn(name="langue_id", referencedColumnName="id")
  102.      * })
  103.      */
  104.     private $langue;
  105.     /**
  106.      * @var \Secteur
  107.      *
  108.      * @ORM\ManyToOne(targetEntity="Secteur")
  109.      * @ORM\JoinColumns({
  110.      *   @ORM\JoinColumn(name="secteur_id", referencedColumnName="id")
  111.      * })
  112.      */
  113.     private $secteur;
  114.     /**
  115.      * @var \AppelType
  116.      *
  117.      * @ORM\ManyToOne(targetEntity="AppelType")
  118.      * @ORM\JoinColumns({
  119.      *   @ORM\JoinColumn(name="appel_type_id", referencedColumnName="id")
  120.      * })
  121.      */
  122.     private $appelType;
  123.     /**
  124.      * @var \Client
  125.      *
  126.      * @ORM\ManyToOne(targetEntity="Client")
  127.      * @ORM\JoinColumns({
  128.      *   @ORM\JoinColumn(name="client_id", referencedColumnName="id")
  129.      * })
  130.      */
  131.     private $client;
  132.     /**
  133.      * @var \Ville
  134.      *
  135.      * @ORM\ManyToOne(targetEntity="Ville")
  136.      * @ORM\JoinColumns({
  137.      *   @ORM\JoinColumn(name="ville_id", referencedColumnName="id")
  138.      * })
  139.      */
  140.     private $ville;
  141.     /**
  142.      * @var \SecteurZone
  143.      *
  144.      * @ORM\ManyToOne(targetEntity="SecteurZone")
  145.      * @ORM\JoinColumns({
  146.      *   @ORM\JoinColumn(name="secteur_zone_id", referencedColumnName="id")
  147.      * })
  148.      */
  149.     private $secteurZone;
  150.     /**
  151.      * @var \Referant
  152.      *
  153.      * @ORM\ManyToOne(targetEntity="Referant")
  154.      * @ORM\JoinColumns({
  155.      *   @ORM\JoinColumn(name="referant_id", referencedColumnName="id")
  156.      * })
  157.      * @Assert\NotBlank(
  158.      *         groups={"referant"},
  159.      *         message="common.blank"
  160.      *      )
  161.      */
  162.     private $referant;
  163.     public function getId(): ?int
  164.     {
  165.         return $this->id;
  166.     }
  167.     public function getRegulateurId(): ?int
  168.     {
  169.         return $this->regulateurId;
  170.     }
  171.     public function setRegulateurId(int $regulateurId): self
  172.     {
  173.         $this->regulateurId $regulateurId;
  174.         return $this;
  175.     }
  176.     public function getSuperviseurId(): ?int
  177.     {
  178.         return $this->superviseurId;
  179.     }
  180.     public function setSuperviseurId(int $superviseurId): self
  181.     {
  182.         $this->superviseurId $superviseurId;
  183.         return $this;
  184.     }
  185.     public function getAstreinteChirurgieId(): ?int
  186.     {
  187.         return $this->astreinteChirurgieId;
  188.     }
  189.     public function setAstreinteChirurgieId(?int $astreinteChirurgieId): self
  190.     {
  191.         $this->astreinteChirurgieId $astreinteChirurgieId;
  192.         return $this;
  193.     }
  194.     public function getVetcoachId(): ?int
  195.     {
  196.         return $this->vetcoachId;
  197.     }
  198.     public function setVetcoachId(?int $vetcoachId): self
  199.     {
  200.         $this->vetcoachId $vetcoachId;
  201.         return $this;
  202.     }
  203.     public function getSaisieUserId(): ?int
  204.     {
  205.         return $this->saisieUserId;
  206.     }
  207.     public function setSaisieUserId(int $saisieUserId): self
  208.     {
  209.         $this->saisieUserId $saisieUserId;
  210.         return $this;
  211.     }
  212.     public function getMotifAppel(): ?string
  213.     {
  214.         return $this->motifAppel;
  215.     }
  216.     public function setMotifAppel(string $motifAppel): self
  217.     {
  218.         $this->motifAppel $motifAppel;
  219.         return $this;
  220.     }
  221.     public function getInformationInterne(): ?string
  222.     {
  223.         return $this->informationInterne;
  224.     }
  225.     public function setInformationInterne(?string $informationInterne): self
  226.     {
  227.         if ($informationInterne === ''$informationInterne null;
  228.         $this->informationInterne $informationInterne;
  229.         return $this;
  230.     }
  231.     public function getDemandeDeNouvelleFaite(): ?bool
  232.     {
  233.         return $this->demandeDeNouvelleFaite;
  234.     }
  235.     public function setDemandeDeNouvelleFaite(bool $demandeDeNouvelleFaite): self
  236.     {
  237.         $this->demandeDeNouvelleFaite $demandeDeNouvelleFaite;
  238.         return $this;
  239.     }
  240.     public function getDateCreation(): ?\DateTimeInterface
  241.     {
  242.         return $this->dateCreation;
  243.     }
  244.     public function setDateCreation(\DateTimeInterface $dateCreation): self
  245.     {
  246.         $this->dateCreation $dateCreation;
  247.         return $this;
  248.     }
  249.     public function getDateModification(): ?\DateTimeInterface
  250.     {
  251.         return $this->dateModification;
  252.     }
  253.     public function setDateModification(\DateTimeInterface $dateModification): self
  254.     {
  255.         $this->dateModification $dateModification;
  256.         return $this;
  257.     }
  258.     public function getLangue(): ?Langue
  259.     {
  260.         return $this->langue;
  261.     }
  262.     public function setLangue(?Langue $langue): self
  263.     {
  264.         $this->langue $langue;
  265.         return $this;
  266.     }
  267.     public function getSecteur(): ?Secteur
  268.     {
  269.         return $this->secteur;
  270.     }
  271.     public function setSecteur(?Secteur $secteur): self
  272.     {
  273.         $this->secteur $secteur;
  274.         return $this;
  275.     }
  276.     public function getAppelType(): ?AppelType
  277.     {
  278.         return $this->appelType;
  279.     }
  280.     public function setAppelType(?AppelType $appelType): self
  281.     {
  282.         $this->appelType $appelType;
  283.         return $this;
  284.     }
  285.     public function getClient(): ?Client
  286.     {
  287.         return $this->client;
  288.     }
  289.     public function setClient(?Client $client): self
  290.     {
  291.         $this->client $client;
  292.         return $this;
  293.     }
  294.     public function getVille(): ?Ville
  295.     {
  296.         return $this->ville;
  297.     }
  298.     public function setVille(?Ville $ville): self
  299.     {
  300.         $this->ville $ville;
  301.         return $this;
  302.     }
  303.     public function getSecteurZone(): ?SecteurZone
  304.     {
  305.         return $this->secteurZone;
  306.     }
  307.     public function setSecteurZone(?SecteurZone $secteurZone): self
  308.     {
  309.         $this->secteurZone $secteurZone;
  310.         return $this;
  311.     }
  312.     public function getReferant(): ?Referant
  313.     {
  314.         return $this->referant;
  315.     }
  316.     public function setReferant(?Referant $referant): self
  317.     {
  318.         $this->referant $referant;
  319.         return $this;
  320.     }
  321.     /**
  322.      * @ORM\PrePersist
  323.      */
  324.     public function setCreatedAtValue()
  325.     {
  326.         $this->dateCreation = new \DateTimeImmutable();
  327.     }
  328. }