Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/CalendarEvent.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CalendarEventRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use JsonSerializable;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CalendarEventRepository::class)
  9.  */
  10. class CalendarEvent implements JsonSerializable
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $url;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $title;
  26.     /**
  27.      * @ORM\Column(type="datetime")
  28.      */
  29.     private $start;
  30.     /**
  31.      * @ORM\Column(type="datetime")
  32.      */
  33.     private $end;
  34.     /**
  35.      * @ORM\Column(type="boolean", options={"default" : false})
  36.      */
  37.     private $allDay false;
  38.      /**
  39.      * @ORM\ManyToOne(targetEntity="User", inversedBy="calendarEvents")
  40.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  41.      */
  42.     private $user;
  43.      /**
  44.      * @ORM\ManyToOne(targetEntity="CalendarEventLabel", inversedBy="calendarEvents")
  45.      * @ORM\JoinColumn(name="calendar_event_label_id", referencedColumnName="id")
  46.      */
  47.     private $calendarEventLabel;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getUrl(): ?string
  53.     {
  54.         return $this->url;
  55.     }
  56.     public function setUrl(?string $url): self
  57.     {
  58.         $this->url $url;
  59.         return $this;
  60.     }
  61.     public function getTitle(): ?string
  62.     {
  63.         return $this->title;
  64.     }
  65.     public function setTitle(string $title): self
  66.     {
  67.         $this->title $title;
  68.         return $this;
  69.     }
  70.     public function getStart(): ?\DateTimeInterface
  71.     {
  72.         return $this->start;
  73.     }
  74.     public function setStart(\DateTimeInterface $start): self
  75.     {
  76.         $this->start $start;
  77.         return $this;
  78.     }
  79.     public function getEnd(): ?\DateTimeInterface
  80.     {
  81.         return $this->end;
  82.     }
  83.     public function setEnd(\DateTimeInterface $end): self
  84.     {
  85.         $this->end $end;
  86.         return $this;
  87.     }
  88.     public function isAllDay(): ?bool
  89.     {
  90.         return $this->allDay;
  91.     }
  92.     public function setAllDay(bool $allDay): self
  93.     {
  94.         $this->allDay $allDay;
  95.         return $this;
  96.     }
  97.     public function getUser(): ?User
  98.     {
  99.         return $this->user;
  100.     }
  101.     public function setUser(User $user): self
  102.     {
  103.         $this->user $user;
  104.         return $this;
  105.     }
  106.     public function getCalendarEventLabel(): ?CalendarEventLabel
  107.     {
  108.         return $this->calendarEventLabel;
  109.     }
  110.     public function setCalendarEventLabel(CalendarEventLabel $calendarEventLabel): self
  111.     {
  112.         $this->calendarEventLabel $calendarEventLabel;
  113.         return $this;
  114.     }
  115.     public function jsonSerialize()
  116.     {
  117.         $vars get_object_vars($this);
  118.         return $vars;
  119.     }
  120. }