]>
Commit | Line | Data |
---|---|---|
9d50517c NL |
1 | <?php |
2 | ||
3 | namespace WallabagBundle\Entity; | |
4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | |
6 | ||
7 | /** | |
8 | * Entries | |
9 | * | |
10 | * @ORM\Entity(repositoryClass="WallabagBundle\Repository\EntriesRepository") | |
11 | * @ORM\Table(name="entries") | |
12 | */ | |
13 | class Entries | |
14 | { | |
15 | /** | |
16 | * @var integer | |
17 | * | |
18 | * @ORM\Column(name="id", type="integer", nullable=true) | |
19 | * @ORM\Id | |
20 | * @ORM\GeneratedValue(strategy="IDENTITY") | |
21 | */ | |
22 | private $id; | |
23 | ||
24 | /** | |
25 | * @var string | |
26 | * | |
27 | * @ORM\Column(name="title", type="text", nullable=true) | |
28 | */ | |
29 | private $title; | |
30 | ||
31 | /** | |
32 | * @var string | |
33 | * | |
34 | * @ORM\Column(name="url", type="text", nullable=true) | |
35 | */ | |
36 | private $url; | |
37 | ||
38 | /** | |
39 | * @var string | |
40 | * | |
41 | * @ORM\Column(name="is_read", type="decimal", precision=10, scale=0, nullable=true) | |
42 | */ | |
43 | private $isRead = '0'; | |
44 | ||
45 | /** | |
46 | * @var string | |
47 | * | |
48 | * @ORM\Column(name="is_fav", type="decimal", precision=10, scale=0, nullable=true) | |
49 | */ | |
50 | private $isFav = '0'; | |
51 | ||
52 | /** | |
53 | * @var string | |
54 | * | |
55 | * @ORM\Column(name="content", type="text", nullable=true) | |
56 | */ | |
57 | private $content; | |
58 | ||
59 | /** | |
60 | * @var string | |
61 | * | |
62 | * @ORM\Column(name="user_id", type="decimal", precision=10, scale=0, nullable=true) | |
63 | */ | |
64 | private $userId; | |
65 | ||
66 | ||
67 | ||
68 | /** | |
69 | * Get id | |
70 | * | |
71 | * @return integer | |
72 | */ | |
73 | public function getId() | |
74 | { | |
75 | return $this->id; | |
76 | } | |
77 | ||
78 | /** | |
79 | * Set title | |
80 | * | |
81 | * @param string $title | |
82 | * @return Entries | |
83 | */ | |
84 | public function setTitle($title) | |
85 | { | |
86 | $this->title = $title; | |
87 | ||
88 | return $this; | |
89 | } | |
90 | ||
91 | /** | |
92 | * Get title | |
93 | * | |
94 | * @return string | |
95 | */ | |
96 | public function getTitle() | |
97 | { | |
98 | return $this->title; | |
99 | } | |
100 | ||
101 | /** | |
102 | * Set url | |
103 | * | |
104 | * @param string $url | |
105 | * @return Entries | |
106 | */ | |
107 | public function setUrl($url) | |
108 | { | |
109 | $this->url = $url; | |
110 | ||
111 | return $this; | |
112 | } | |
113 | ||
114 | /** | |
115 | * Get url | |
116 | * | |
117 | * @return string | |
118 | */ | |
119 | public function getUrl() | |
120 | { | |
121 | return $this->url; | |
122 | } | |
123 | ||
124 | /** | |
125 | * Set isRead | |
126 | * | |
127 | * @param string $isRead | |
128 | * @return Entries | |
129 | */ | |
130 | public function setIsRead($isRead) | |
131 | { | |
132 | $this->isRead = $isRead; | |
133 | ||
134 | return $this; | |
135 | } | |
136 | ||
137 | /** | |
138 | * Get isRead | |
139 | * | |
140 | * @return string | |
141 | */ | |
142 | public function getIsRead() | |
143 | { | |
144 | return $this->isRead; | |
145 | } | |
146 | ||
147 | /** | |
148 | * Set isFav | |
149 | * | |
150 | * @param string $isFav | |
151 | * @return Entries | |
152 | */ | |
153 | public function setIsFav($isFav) | |
154 | { | |
155 | $this->isFav = $isFav; | |
156 | ||
157 | return $this; | |
158 | } | |
159 | ||
160 | /** | |
161 | * Get isFav | |
162 | * | |
163 | * @return string | |
164 | */ | |
165 | public function getIsFav() | |
166 | { | |
167 | return $this->isFav; | |
168 | } | |
169 | ||
170 | /** | |
171 | * Set content | |
172 | * | |
173 | * @param string $content | |
174 | * @return Entries | |
175 | */ | |
176 | public function setContent($content) | |
177 | { | |
178 | $this->content = $content; | |
179 | ||
180 | return $this; | |
181 | } | |
182 | ||
183 | /** | |
184 | * Get content | |
185 | * | |
186 | * @return string | |
187 | */ | |
188 | public function getContent() | |
189 | { | |
190 | return $this->content; | |
191 | } | |
192 | ||
193 | /** | |
194 | * Set userId | |
195 | * | |
196 | * @param string $userId | |
197 | * @return Entries | |
198 | */ | |
199 | public function setUserId($userId) | |
200 | { | |
201 | $this->userId = $userId; | |
202 | ||
203 | return $this; | |
204 | } | |
205 | ||
206 | /** | |
207 | * Get userId | |
208 | * | |
209 | * @return string | |
210 | */ | |
211 | public function getUserId() | |
212 | { | |
213 | return $this->userId; | |
214 | } | |
215 | } |