src/Entity/PlanningCompany.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanningCompanyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PlanningCompanyRepository::class)
  7.  */
  8. class PlanningCompany
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime")
  18.      */
  19.     private $atDate;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $dateStamp;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="planningCompanies")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $company;
  29.     /**
  30.      * @ORM\Column(type="string", length=100, nullable=true)
  31.      */
  32.     private $titre;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $start;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $end;
  41.     /**
  42.      * @ORM\Column(type="text", nullable=true)
  43.      */
  44.     private $desciption;
  45.     /**
  46.      * @ORM\Column(type="boolean", nullable=true)
  47.      */
  48.     private $allDay;
  49.     /**
  50.      * @ORM\Column(type="string", length=8, nullable=true)
  51.      */
  52.     private $backgroundColor;
  53.     /**
  54.      * @ORM\Column(type="string", length=8, nullable=true)
  55.      */
  56.     private $borderColor;
  57.     /**
  58.      * @ORM\Column(type="string", length=8, nullable=true)
  59.      */
  60.     private $textColor;
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getAtDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->atDate;
  68.     }
  69.     public function setAtDate(\DateTimeInterface $atDate): self
  70.     {
  71.         $this->atDate $atDate;
  72.         return $this;
  73.     }
  74.     public function getCompany(): ?Company
  75.     {
  76.         return $this->company;
  77.     }
  78.     public function setCompany(?Company $company): self
  79.     {
  80.         $this->company $company;
  81.         return $this;
  82.     }
  83.     /**
  84.      * @return mixed
  85.      */
  86.     public function getDateStamp()
  87.     {
  88.         return $this->dateStamp;
  89.     }
  90.     /**
  91.      * @param mixed $dateStamp
  92.      */
  93.     public function setDateStamp($dateStamp): void
  94.     {
  95.         $this->dateStamp $dateStamp;
  96.     }
  97.     public function getTitre(): ?string
  98.     {
  99.         return $this->titre;
  100.     }
  101.     public function setTitre(string $titre): self
  102.     {
  103.         $this->titre $titre;
  104.         return $this;
  105.     }
  106.     public function getStart(): ?\DateTimeInterface
  107.     {
  108.         return $this->start;
  109.     }
  110.     public function setStart(\DateTimeInterface $start): self
  111.     {
  112.         $this->start $start;
  113.         return $this;
  114.     }
  115.     public function getEnd(): ?\DateTimeInterface
  116.     {
  117.         return $this->end;
  118.     }
  119.     public function setEnd(\DateTimeInterface $end): self
  120.     {
  121.         $this->end $end;
  122.         return $this;
  123.     }
  124.     public function getDesciption(): ?string
  125.     {
  126.         return $this->desciption;
  127.     }
  128.     public function setDesciption(string $desciption): self
  129.     {
  130.         $this->desciption $desciption;
  131.         return $this;
  132.     }
  133.     public function getAllDay(): ?bool
  134.     {
  135.         return $this->allDay;
  136.     }
  137.     public function setAllDay(bool $allDay): self
  138.     {
  139.         $this->allDay $allDay;
  140.         return $this;
  141.     }
  142.     public function getBackgroundColor(): ?string
  143.     {
  144.         return $this->backgroundColor;
  145.     }
  146.     public function setBackgroundColor(string $backgroundColor): self
  147.     {
  148.         $this->backgroundColor $backgroundColor;
  149.         return $this;
  150.     }
  151.     public function getBorderColor(): ?string
  152.     {
  153.         return $this->borderColor;
  154.     }
  155.     public function setBorderColor(string $borderColor): self
  156.     {
  157.         $this->borderColor $borderColor;
  158.         return $this;
  159.     }
  160.     public function getTextColor(): ?string
  161.     {
  162.         return $this->textColor;
  163.     }
  164.     public function setTextColor(string $textColor): self
  165.     {
  166.         $this->textColor $textColor;
  167.         return $this;
  168.     }
  169. }