src/Entity/ApiSettings.php line 10

Open in your IDE?
  1. <?php
  2. namespace Acme\SudcmsBundle\Entity;
  3. use Acme\SudcmsBundle\Repository\ApiSettingsRepository;
  4. use DateTimeInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassApiSettingsRepository::class)]
  7. class ApiSettings
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private int $id;
  13.     #[ORM\Column(type'float')]
  14.     private float $cureArrhes 0;
  15.     #[ORM\Column(type'string'length15)]
  16.     private $ipApiServer;
  17.     #[ORM\Column(type'string'length4nullabletrue)]
  18.     private $portApiServer;
  19.     #[ORM\Column(type'boolean'nullabletrue)]
  20.     private $cureQuota;
  21.     #[ORM\Column(type'integer'nullablefalse)]
  22.     private $nbDaysAvailableSearch;
  23.     #[ORM\Column(type'date'nullablefalse)]
  24.     private $currentYearStartDate;
  25.     #[ORM\Column(type'date'nullablefalse)]
  26.     private $currentYearEndDate;
  27.     #[ORM\Column(type'date'nullablefalse)]
  28.     private $nextYearStartDate;
  29.     #[ORM\Column(type'date'nullablefalse)]
  30.     private $nextYearEndDate;
  31.     #[ORM\Column(type'integer'nullablefalse)]
  32.     private $siteId;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getCureArrhes(): ?float
  38.     {
  39.         return $this->cureArrhes;
  40.     }
  41.     public function setCureArrhes(float $cureArrhes 0): self
  42.     {
  43.         $this->cureArrhes $cureArrhes;
  44.         return $this;
  45.     }
  46.     public function getIpApiServer(): ?string
  47.     {
  48.         return $this->ipApiServer;
  49.     }
  50.     public function setIpApiServer(string $ipApiServer): self
  51.     {
  52.         $this->ipApiServer $ipApiServer;
  53.         return $this;
  54.     }
  55.     public function getPortApiServer(): ?string
  56.     {
  57.         return $this->portApiServer;
  58.     }
  59.     public function setPortApiServer(?string $portApiServer): self
  60.     {
  61.         $this->portApiServer $portApiServer;
  62.         return $this;
  63.     }
  64.     public function isCureQuota(): ?bool
  65.     {
  66.         return $this->cureQuota;
  67.     }
  68.     public function setCureQuota(?bool $cureQuota): self
  69.     {
  70.         $this->cureQuota $cureQuota;
  71.         return $this;
  72.     }
  73.     public function getNbDaysAvailableSearch(): ?int
  74.     {
  75.         return $this->nbDaysAvailableSearch;
  76.     }
  77.     public function setNbDaysAvailableSearch(int $nbDaysAvailableSearch): self
  78.     {
  79.         $this->nbDaysAvailableSearch $nbDaysAvailableSearch;
  80.         return $this;
  81.     }
  82.     public function getCurrentYearStartDate(): DateTimeInterface
  83.     {
  84.         return $this->currentYearStartDate;
  85.     }
  86.     public function setCurrentYearStartDate(DateTimeInterface $currentYearStartDate): self
  87.     {
  88.         $this->currentYearStartDate $currentYearStartDate;
  89.         return $this;
  90.     }
  91.     public function getCurrentYearEndDate(): DateTimeInterface
  92.     {
  93.         return $this->currentYearEndDate;
  94.     }
  95.     public function setCurrentYearEndDate(DateTimeInterface $currentYearEndDate): self
  96.     {
  97.         $this->currentYearEndDate $currentYearEndDate;
  98.         return $this;
  99.     }
  100.     public function getNextYearStartDate(): DateTimeInterface
  101.     {
  102.         return $this->nextYearStartDate;
  103.     }
  104.     public function setNextYearStartDate(DateTimeInterface $nextYearStartDate): self
  105.     {
  106.         $this->nextYearStartDate $nextYearStartDate;
  107.         return $this;
  108.     }
  109.     public function getNextYearEndDate(): DateTimeInterface
  110.     {
  111.         return $this->nextYearEndDate;
  112.     }
  113.     public function setNextYearEndDate(DateTimeInterface $nextYearEndDate): self
  114.     {
  115.         $this->nextYearEndDate $nextYearEndDate;
  116.         return $this;
  117.     }
  118.     public function getSiteId(): ?int
  119.     {
  120.         return $this->siteId;
  121.     }
  122.     public function setSiteId(?int $siteId): self
  123.     {
  124.         $this->siteId $siteId;
  125.         return $this;
  126.     }
  127. }