<?php
namespace App\Entity\Planning;
use Doctrine\ORM\Mapping as ORM;
/**
* Site
*
* @ORM\Table(name="site")
* @ORM\Entity(repositoryClass="App\Repository\Planning\SiteRepository")
*/
class Site
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=50, nullable=false)
*/
private $nom;
/**
* @var string
*
* @ORM\Column(name="code_pays", type="string", length=2, nullable=false, options={"default"="FR","fixed"=true})
*/
private $codePays = 'FR';
/**
* @var string|null
*
* @ORM\Column(name="code_canton", type="string", length=10, nullable=true)
*/
private $codeCanton;
/**
* @var string|null
*
* @ORM\Column(name="code_api", type="string", length=30, nullable=true)
*/
private $codeApi;
/**
* @var \PlanningParams
*
* One Site has one PlanningParams. This is the inverse side.
* @ORM\OneToOne(targetEntity="PlanningParams", mappedBy="site")
*/
private $planningParams;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getCodePays(): ?string
{
return $this->codePays;
}
public function setCodePays(string $codePays): self
{
$this->codePays = $codePays;
return $this;
}
public function getCodeCanton(): ?string
{
return $this->codeCanton;
}
public function setCodeCanton(?string $codeCanton): self
{
$this->codeCanton = $codeCanton;
return $this;
}
public function getCodeApi(): ?string
{
return $this->codeApi;
}
public function setCodeApi(?string $codeApi): self
{
$this->codeApi = $codeApi;
return $this;
}
public function getPlanningParams(): ?PlanningParams
{
return $this->planningParams;
}
}