1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* Copyright (C) 2015 Michael Giesler |
4
|
|
|
* |
5
|
|
|
* This file is part of Dembelo. |
6
|
|
|
* |
7
|
|
|
* Dembelo is free software: you can redistribute it and/or modify |
8
|
|
|
* it under the terms of the GNU Affero General Public License as published by |
9
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
10
|
|
|
* (at your option) any later version. |
11
|
|
|
* |
12
|
|
|
* Dembelo is distributed in the hope that it will be useful, |
13
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15
|
|
|
* GNU Affero General Public License 3 for more details. |
16
|
|
|
* |
17
|
|
|
* You should have received a copy of the GNU Affero General Public License 3 |
18
|
|
|
* along with Dembelo. If not, see <http://www.gnu.org/licenses/>. |
19
|
|
|
* |
20
|
|
|
* @package DembeloMain |
21
|
|
|
*/ |
22
|
|
|
namespace DembeloMain\Document; |
23
|
|
|
|
24
|
|
|
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; |
25
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* Class Readpath |
29
|
|
|
* |
30
|
|
|
* @MongoDB\Document |
31
|
|
|
* @MongoDB\Document(repositoryClass="\DembeloMain\Model\Repository\Doctrine\ODM\ReadPathRepository") |
32
|
|
|
*/ |
33
|
|
|
class Readpath |
34
|
|
|
{ |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @MongoDB\Id |
38
|
|
|
*/ |
39
|
|
|
protected $id; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @MongoDB\Field(type="object_id") |
43
|
|
|
*/ |
44
|
|
|
protected $userId; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @MongoDB\Field(type="object_id") |
48
|
|
|
*/ |
49
|
|
|
protected $textnodeId; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @MongoDB\Field(type="date") |
53
|
|
|
*/ |
54
|
|
|
protected $timestamp; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return mixed |
58
|
|
|
*/ |
59
|
|
|
public function getId() |
60
|
|
|
{ |
61
|
|
|
return $this->id; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @param mixed $id |
66
|
|
|
*/ |
67
|
|
|
public function setId($id) |
68
|
|
|
{ |
69
|
|
|
$this->id = $id; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @return mixed |
74
|
|
|
*/ |
75
|
1 |
|
public function getUserId() |
76
|
|
|
{ |
77
|
1 |
|
return $this->userId; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @param mixed $userId |
82
|
|
|
*/ |
83
|
2 |
|
public function setUserId($userId) |
84
|
|
|
{ |
85
|
2 |
|
$this->userId = $userId; |
86
|
2 |
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @return mixed |
90
|
|
|
*/ |
91
|
2 |
|
public function getTextnodeId() |
92
|
|
|
{ |
93
|
2 |
|
return $this->textnodeId; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @param mixed $textnodeId |
98
|
|
|
*/ |
99
|
2 |
|
public function setTextnodeId($textnodeId) |
100
|
|
|
{ |
101
|
2 |
|
$this->textnodeId = $textnodeId; |
102
|
2 |
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return mixed |
106
|
|
|
*/ |
107
|
1 |
|
public function getTimestamp() |
108
|
|
|
{ |
109
|
1 |
|
return $this->timestamp; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param mixed $timestamp |
114
|
|
|
*/ |
115
|
2 |
|
public function setTimestamp($timestamp) |
116
|
|
|
{ |
117
|
2 |
|
$this->timestamp = $timestamp; |
118
|
2 |
|
} |
119
|
|
|
} |
120
|
|
|
|