91 lines
1.6 KiB
PHP
91 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Webdav;
|
||
|
|
||
|
/**
|
||
|
* class Event.
|
||
|
*
|
||
|
* @author Simon Vieille <simon@deblan.fr>
|
||
|
*/
|
||
|
class Event
|
||
|
{
|
||
|
protected ?string $uid;
|
||
|
protected ?string $summary;
|
||
|
protected ?string $description;
|
||
|
protected ?string $location;
|
||
|
protected ?\DateTime $startAt;
|
||
|
protected ?\DateTime $finishAt;
|
||
|
|
||
|
public function setUid(?string $uid): self
|
||
|
{
|
||
|
$this->uid = $uid;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getUid(): ?string
|
||
|
{
|
||
|
return $this->uid;
|
||
|
}
|
||
|
|
||
|
public function setSummary(?string $summary): self
|
||
|
{
|
||
|
$this->summary = $summary;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getSummary(): ?string
|
||
|
{
|
||
|
return $this->summary;
|
||
|
}
|
||
|
|
||
|
public function setDescription(?string $description): self
|
||
|
{
|
||
|
$this->description = $description;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getDescription(): ?string
|
||
|
{
|
||
|
return $this->description;
|
||
|
}
|
||
|
|
||
|
public function setLocation(?string $location): self
|
||
|
{
|
||
|
$this->location = $location;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getLocation(): ?string
|
||
|
{
|
||
|
return $this->location;
|
||
|
}
|
||
|
|
||
|
public function setStartAt(?\DateTime $startAt): self
|
||
|
{
|
||
|
$this->startAt = $startAt;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getStartAt(): ?\DateTime
|
||
|
{
|
||
|
return $this->startAt;
|
||
|
}
|
||
|
|
||
|
public function setFinishAt(?\DateTime $finishAt): self
|
||
|
{
|
||
|
$this->finishAt = $finishAt;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getFinishAt(): ?\DateTime
|
||
|
{
|
||
|
return $this->finishAt;
|
||
|
}
|
||
|
}
|