<?php
namespace App\Entity;
use App\Repository\PlanningCompanyRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PlanningCompanyRepository::class)
*/
class PlanningCompany
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $atDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $dateStamp;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="planningCompanies")
* @ORM\JoinColumn(nullable=false)
*/
private $company;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $start;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $end;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $desciption;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $allDay;
/**
* @ORM\Column(type="string", length=8, nullable=true)
*/
private $backgroundColor;
/**
* @ORM\Column(type="string", length=8, nullable=true)
*/
private $borderColor;
/**
* @ORM\Column(type="string", length=8, nullable=true)
*/
private $textColor;
public function getId(): ?int
{
return $this->id;
}
public function getAtDate(): ?\DateTimeInterface
{
return $this->atDate;
}
public function setAtDate(\DateTimeInterface $atDate): self
{
$this->atDate = $atDate;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
/**
* @return mixed
*/
public function getDateStamp()
{
return $this->dateStamp;
}
/**
* @param mixed $dateStamp
*/
public function setDateStamp($dateStamp): void
{
$this->dateStamp = $dateStamp;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getStart(): ?\DateTimeInterface
{
return $this->start;
}
public function setStart(\DateTimeInterface $start): self
{
$this->start = $start;
return $this;
}
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}
public function setEnd(\DateTimeInterface $end): self
{
$this->end = $end;
return $this;
}
public function getDesciption(): ?string
{
return $this->desciption;
}
public function setDesciption(string $desciption): self
{
$this->desciption = $desciption;
return $this;
}
public function getAllDay(): ?bool
{
return $this->allDay;
}
public function setAllDay(bool $allDay): self
{
$this->allDay = $allDay;
return $this;
}
public function getBackgroundColor(): ?string
{
return $this->backgroundColor;
}
public function setBackgroundColor(string $backgroundColor): self
{
$this->backgroundColor = $backgroundColor;
return $this;
}
public function getBorderColor(): ?string
{
return $this->borderColor;
}
public function setBorderColor(string $borderColor): self
{
$this->borderColor = $borderColor;
return $this;
}
public function getTextColor(): ?string
{
return $this->textColor;
}
public function setTextColor(string $textColor): self
{
$this->textColor = $textColor;
return $this;
}
}