<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass="App\Repository\SystemRepository")
*/
class System
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
* @Groups({"sys_all","sys_mini"})
*/
private $id;
/**
* @ORM\Column(type="boolean")
* @Groups({"sys_all","sys_mini"})
*/
private $statut;
/**
* @ORM\Column(type="datetime")
* @Groups({"sys_all","sys_mini"})
*/
private $date;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpUser;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpPassword;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpDirectory;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $databaseFolder;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $savingFolder;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $organisationLogo;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $organisationSigle;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpPort;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $baseFolder;
/**
* @ORM\Column(type="string", length=50, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $country;
/**
* @ORM\Column(type="string", length=140, nullable=true)
* @Gedmo\Translatable
*
* @Groups({"sys_all","sys_mini"})
*/
private $organisationName;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpProtocole;
/**
* @ORM\Column(type="text", nullable=true)
*
* @Groups({"sys_all","sys_mini"})
*/
private $ftpFolder;
/**
* @Gedmo\Locale
* Used locale to override Translation listener`s locale
* this is not a mapped field of entity metadata, just a simple property
*/
private $locale;
/**
* @Groups({"sys_all","sys_mini"})
* @ORM\Column(type="string", length=255)
*/
private $phone;
/**
* @Groups({"sys_all","sys_mini"})
* @ORM\Column(type="string", length=255)
*/
private $address;
/**
* @Groups({"sys_all","sys_mini"})
* @ORM\Column(type="string", length=255)
*/
private $bp;
/**
* @Groups({"sys_all","sys_mini"})
* @ORM\Column(type="string", length=255)
*/
private $fax;
/**
* @ORM\Column(type="integer")
* @Groups({"sys_all","sys_mini"})
*/
private $nbDayAlertBill;
/**
* @ORM\Column(type="integer")
* @Groups({"sys_all","sys_mini"})
*/
private $nbDayAlertProductExpiration;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({"sys_all","sys_mini"})
*/
private $agreement;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({"sys_all","sys_mini"})
*/
private $other;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"sys_all","sys_mini"})
*/
private $email;
/**
* System constructor.
*/
public function __construct()
{
$this->date = new \DateTime();
$this->organisationName = '';
$this->address = '';
$this->phone = '';
$this->fax = '';
$this->bp = '';
$this->agreement = '';
$this->other = '';
$this->email = '';
$this->nbDayAlertBill = 3;
$this->nbDayAlertProductExpiration = 7;
}
public function setTranslatableLocale($locale)
{
$this->locale = $locale;
}
public function getId(): ?int
{
return $this->id;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setStatut(bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getFtpUser(): ?string
{
return $this->ftpUser;
}
public function setFtpUser(?string $ftpUser): self
{
$this->ftpUser = $ftpUser;
return $this;
}
public function getFtpPassword(): ?string
{
return $this->ftpPassword;
}
public function setFtpPassword(?string $ftpPassword): self
{
$this->ftpPassword = $ftpPassword;
return $this;
}
public function getFtpDirectory(): ?string
{
return $this->ftpDirectory;
}
public function setFtpDirectory(?string $ftpDirectory): self
{
$this->ftpDirectory = $ftpDirectory;
return $this;
}
public function getDatabaseFolder(): ?string
{
return $this->databaseFolder;
}
public function setDatabaseFolder(?string $databaseFolder): self
{
$this->databaseFolder = $databaseFolder;
return $this;
}
public function getOrganisationLogo(): ?string
{
return $this->organisationLogo;
}
public function setOrganisationLogo(?string $organisationLogo): self
{
$this->organisationLogo = $organisationLogo;
return $this;
}
public function getOrganisationSigle(): ?string
{
return $this->organisationSigle;
}
public function setOrganisationSigle(?string $organisationSigle): self
{
$this->organisationSigle = $organisationSigle;
return $this;
}
public function getFtpPort(): ?string
{
return $this->ftpPort;
}
public function setFtpPort(?string $ftpPort): self
{
$this->ftpPort = $ftpPort;
return $this;
}
public function getSavingFolder(): ?string
{
return $this->savingFolder;
}
public function setSavingFolder(?string $savingFolder): self
{
$this->savingFolder = $savingFolder;
return $this;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): self
{
$this->country = $country;
return $this;
}
public function getOrganisationName(): ?string
{
return $this->organisationName;
}
public function setOrganisationName(?string $organisationName): self
{
$this->organisationName = $organisationName;
return $this;
}
public function getFtpProtocole(): ?string
{
return $this->ftpProtocole;
}
public function setFtpProtocole(?string $ftpProtocole): self
{
$this->ftpProtocole = $ftpProtocole;
return $this;
}
public function getFtpFolder(): ?string
{
return $this->ftpFolder;
}
public function setFtpFolder(?string $ftpFolder): self
{
$this->ftpFolder = $ftpFolder;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
public function getBp(): ?string
{
return $this->bp;
}
public function setBp(string $bp): self
{
$this->bp = $bp;
return $this;
}
public function getFax(): ?string
{
return $this->fax;
}
public function setFax(string $fax): self
{
$this->fax = $fax;
return $this;
}
public function getNbDayAlertBill(): ?int
{
return $this->nbDayAlertBill;
}
public function setNbDayAlertBill(int $nbDayAlertBill): self
{
$this->nbDayAlertBill = $nbDayAlertBill;
return $this;
}
public function getNbDayAlertProductExpiration(): ?int
{
return $this->nbDayAlertProductExpiration;
}
public function setNbDayAlertProductExpiration(int $nbDayAlertProductExpiration): self
{
$this->nbDayAlertProductExpiration = $nbDayAlertProductExpiration;
return $this;
}
public function getAgreement(): ?string
{
return $this->agreement;
}
public function setAgreement(?string $agreement): self
{
$this->agreement = $agreement;
return $this;
}
public function getOther(): ?string
{
return $this->other;
}
public function setOther(?string $other): self
{
$this->other = $other;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
}