-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathCalendarChange.php
More file actions
81 lines (61 loc) · 1.5 KB
/
CalendarChange.php
File metadata and controls
81 lines (61 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity()]
#[ORM\Table(name: 'calendarchanges')]
class CalendarChange
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $uri;
#[ORM\Column(type: 'integer')]
private $synctoken;
#[ORM\ManyToOne(targetEntity: "App\Entity\Calendar", inversedBy: 'changes')]
#[ORM\JoinColumn(name: 'calendarid', nullable: false)]
private $calendar;
#[ORM\Column(type: 'smallint')]
private $operation; // 1 = create, 2 = update, 3 = delete
public function getId(): ?int
{
return $this->id;
}
public function getUri(): ?string
{
return $this->uri;
}
public function setUri(string $uri): self
{
$this->uri = $uri;
return $this;
}
public function getSynctoken(): ?int
{
return $this->synctoken;
}
public function setSynctoken(int $synctoken): self
{
$this->synctoken = $synctoken;
return $this;
}
public function getCalendar(): ?Calendar
{
return $this->calendar;
}
public function setCalendar(?Calendar $calendar): self
{
$this->calendar = $calendar;
return $this;
}
public function getOperation(): ?int
{
return $this->operation;
}
public function setOperation(int $operation): self
{
$this->operation = $operation;
return $this;
}
}