src/Entity/Planning/Site.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Planning;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Site
  6.  *
  7.  * @ORM\Table(name="site")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Planning\SiteRepository")
  9.  */
  10. class Site
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="nom", type="string", length=50, nullable=false)
  24.      */
  25.     private $nom;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="code_pays", type="string", length=2, nullable=false, options={"default"="FR","fixed"=true})
  30.      */
  31.     private $codePays 'FR';
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="code_canton", type="string", length=10, nullable=true)
  36.      */
  37.     private $codeCanton;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="code_api", type="string", length=30, nullable=true)
  42.      */
  43.     private $codeApi;
  44.     /**
  45.      * @var \PlanningParams
  46.      *
  47.      * One Site has one PlanningParams. This is the inverse side.
  48.      * @ORM\OneToOne(targetEntity="PlanningParams", mappedBy="site")
  49.      */
  50.     private $planningParams;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getNom(): ?string
  56.     {
  57.         return $this->nom;
  58.     }
  59.     public function setNom(string $nom): self
  60.     {
  61.         $this->nom $nom;
  62.         return $this;
  63.     }
  64.     public function getCodePays(): ?string
  65.     {
  66.         return $this->codePays;
  67.     }
  68.     public function setCodePays(string $codePays): self
  69.     {
  70.         $this->codePays $codePays;
  71.         return $this;
  72.     }
  73.     public function getCodeCanton(): ?string
  74.     {
  75.         return $this->codeCanton;
  76.     }
  77.     public function setCodeCanton(?string $codeCanton): self
  78.     {
  79.         $this->codeCanton $codeCanton;
  80.         return $this;
  81.     }
  82.     public function getCodeApi(): ?string
  83.     {
  84.         return $this->codeApi;
  85.     }
  86.     public function setCodeApi(?string $codeApi): self
  87.     {
  88.         $this->codeApi $codeApi;
  89.         return $this;
  90.     }
  91.     public function getPlanningParams(): ?PlanningParams
  92.     {
  93.         return $this->planningParams;
  94.     }
  95. }