<?php
namespace Acme\SudcmsBundle\Entity;
use Acme\SudcmsBundle\Repository\ApiSettingsRepository;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ApiSettingsRepository::class)]
class ApiSettings
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'float')]
private float $cureArrhes = 0;
#[ORM\Column(type: 'string', length: 15)]
private $ipApiServer;
#[ORM\Column(type: 'string', length: 4, nullable: true)]
private $portApiServer;
#[ORM\Column(type: 'boolean', nullable: true)]
private $cureQuota;
#[ORM\Column(type: 'integer', nullable: false)]
private $nbDaysAvailableSearch;
#[ORM\Column(type: 'date', nullable: false)]
private $currentYearStartDate;
#[ORM\Column(type: 'date', nullable: false)]
private $currentYearEndDate;
#[ORM\Column(type: 'date', nullable: false)]
private $nextYearStartDate;
#[ORM\Column(type: 'date', nullable: false)]
private $nextYearEndDate;
#[ORM\Column(type: 'integer', nullable: false)]
private $siteId;
public function getId(): ?int
{
return $this->id;
}
public function getCureArrhes(): ?float
{
return $this->cureArrhes;
}
public function setCureArrhes(float $cureArrhes = 0): self
{
$this->cureArrhes = $cureArrhes;
return $this;
}
public function getIpApiServer(): ?string
{
return $this->ipApiServer;
}
public function setIpApiServer(string $ipApiServer): self
{
$this->ipApiServer = $ipApiServer;
return $this;
}
public function getPortApiServer(): ?string
{
return $this->portApiServer;
}
public function setPortApiServer(?string $portApiServer): self
{
$this->portApiServer = $portApiServer;
return $this;
}
public function isCureQuota(): ?bool
{
return $this->cureQuota;
}
public function setCureQuota(?bool $cureQuota): self
{
$this->cureQuota = $cureQuota;
return $this;
}
public function getNbDaysAvailableSearch(): ?int
{
return $this->nbDaysAvailableSearch;
}
public function setNbDaysAvailableSearch(int $nbDaysAvailableSearch): self
{
$this->nbDaysAvailableSearch = $nbDaysAvailableSearch;
return $this;
}
public function getCurrentYearStartDate(): DateTimeInterface
{
return $this->currentYearStartDate;
}
public function setCurrentYearStartDate(DateTimeInterface $currentYearStartDate): self
{
$this->currentYearStartDate = $currentYearStartDate;
return $this;
}
public function getCurrentYearEndDate(): DateTimeInterface
{
return $this->currentYearEndDate;
}
public function setCurrentYearEndDate(DateTimeInterface $currentYearEndDate): self
{
$this->currentYearEndDate = $currentYearEndDate;
return $this;
}
public function getNextYearStartDate(): DateTimeInterface
{
return $this->nextYearStartDate;
}
public function setNextYearStartDate(DateTimeInterface $nextYearStartDate): self
{
$this->nextYearStartDate = $nextYearStartDate;
return $this;
}
public function getNextYearEndDate(): DateTimeInterface
{
return $this->nextYearEndDate;
}
public function setNextYearEndDate(DateTimeInterface $nextYearEndDate): self
{
$this->nextYearEndDate = $nextYearEndDate;
return $this;
}
public function getSiteId(): ?int
{
return $this->siteId;
}
public function setSiteId(?int $siteId): self
{
$this->siteId = $siteId;
return $this;
}
}