Issues (1270)

src/Model/Feed.php (35 issues)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace RssApp\Model;
6
7
use DateTime;
8
use Doctrine\ORM\Mapping as ORM;
9
use RssApp\Model;
10
use RssApp\Model\Traits\Identified;
11
use RssApp\Model\Traits\Owned;
12
13
/**
14
 * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="feed_url", columns={"feed_url", "owner_uid"})}, indexes={@ORM\Index(name="owner_uid", columns={"owner_uid"}), @ORM\Index(name="parent_feed", columns={"parent_feed"}), @ORM\Index(name="cat_id", columns={"cat_id"})})
15
 * @ORM\Entity
16
 */
17
class Feed extends Model
18
{
19
    use Identified,
20
        Owned;
21
22
    /**
23
     * @var string
24
     *
25
     * @ORM\Column(name="title", type="string", length=200, nullable=false)
26
     */
27
    private $title;
0 ignored issues
show
The private property $title is not used, and could be removed.
Loading history...
28
29
    /**
30
     * @var string
31
     *
32
     * @ORM\Column(name="feed_url", type="string", length=255, nullable=false)
33
     */
34
    private $feedUrl;
0 ignored issues
show
The private property $feedUrl is not used, and could be removed.
Loading history...
35
36
    /**
37
     * @var string
38
     *
39
     * @ORM\Column(name="icon_url", type="string", length=250, nullable=false)
40
     */
41
    private $iconUrl = '';
0 ignored issues
show
The private property $iconUrl is not used, and could be removed.
Loading history...
42
43
    /**
44
     * @var int
45
     *
46
     * @ORM\Column(name="update_interval", type="integer", nullable=false)
47
     */
48
    private $updateInterval = 0;
0 ignored issues
show
The private property $updateInterval is not used, and could be removed.
Loading history...
49
50
    /**
51
     * @var int
52
     *
53
     * @ORM\Column(name="purge_interval", type="integer", nullable=false)
54
     */
55
    private $purgeInterval = 0;
0 ignored issues
show
The private property $purgeInterval is not used, and could be removed.
Loading history...
56
57
    /**
58
     * @var DateTime|null
59
     *
60
     * @ORM\Column(name="last_updated", type="datetime", nullable=true)
61
     */
62
    private $lastUpdated;
0 ignored issues
show
The private property $lastUpdated is not used, and could be removed.
Loading history...
63
64
    /**
65
     * @var DateTime|null
66
     *
67
     * @ORM\Column(name="last_unconditional", type="datetime", nullable=true)
68
     */
69
    private $lastUnconditional;
0 ignored issues
show
The private property $lastUnconditional is not used, and could be removed.
Loading history...
70
71
    /**
72
     * @var string
73
     *
74
     * @ORM\Column(name="last_error", type="string", length=250, nullable=false)
75
     */
76
    private $lastError = '';
0 ignored issues
show
The private property $lastError is not used, and could be removed.
Loading history...
77
78
    /**
79
     * @var string
80
     *
81
     * @ORM\Column(name="last_modified", type="string", length=250, nullable=false)
82
     */
83
    private $lastModified = '';
0 ignored issues
show
The private property $lastModified is not used, and could be removed.
Loading history...
84
85
    /**
86
     * @var string|null
87
     *
88
     * @ORM\Column(name="favicon_avg_color", type="string", length=11, nullable=true)
89
     */
90
    private $faviconAvgColor;
0 ignored issues
show
The private property $faviconAvgColor is not used, and could be removed.
Loading history...
91
92
    /**
93
     * @var string
94
     *
95
     * @ORM\Column(name="site_url", type="string", length=250, nullable=false)
96
     */
97
    private $siteUrl = '';
0 ignored issues
show
The private property $siteUrl is not used, and could be removed.
Loading history...
98
99
    /**
100
     * @var string
101
     *
102
     * @ORM\Column(name="auth_login", type="string", length=250, nullable=false)
103
     */
104
    private $authLogin = '';
0 ignored issues
show
The private property $authLogin is not used, and could be removed.
Loading history...
105
106
    /**
107
     * @var string
108
     *
109
     * @ORM\Column(name="auth_pass", type="string", length=250, nullable=false)
110
     */
111
    private $authPass = '';
0 ignored issues
show
The private property $authPass is not used, and could be removed.
Loading history...
112
113
    /**
114
     * @var bool
115
     *
116
     * @ORM\Column(name="private", type="boolean", nullable=false)
117
     */
118
    private $private = false;
0 ignored issues
show
The private property $private is not used, and could be removed.
Loading history...
119
120
    /**
121
     * @var bool
122
     *
123
     * @ORM\Column(name="rtl_content", type="boolean", nullable=false)
124
     */
125
    private $rtlContent = false;
0 ignored issues
show
The private property $rtlContent is not used, and could be removed.
Loading history...
126
127
    /**
128
     * @var bool
129
     *
130
     * @ORM\Column(name="hidden", type="boolean", nullable=false)
131
     */
132
    private $hidden = false;
0 ignored issues
show
The private property $hidden is not used, and could be removed.
Loading history...
133
134
    /**
135
     * @var bool
136
     *
137
     * @ORM\Column(name="include_in_digest", type="boolean", nullable=false)
138
     */
139
    private $includeInDigest = true;
0 ignored issues
show
The private property $includeInDigest is not used, and could be removed.
Loading history...
140
141
    /**
142
     * @var bool
143
     *
144
     * @ORM\Column(name="cache_images", type="boolean", nullable=false)
145
     */
146
    private $cacheImages = false;
0 ignored issues
show
The private property $cacheImages is not used, and could be removed.
Loading history...
147
148
    /**
149
     * @var bool
150
     *
151
     * @ORM\Column(name="hide_images", type="boolean", nullable=false)
152
     */
153
    private $hideImages = false;
0 ignored issues
show
The private property $hideImages is not used, and could be removed.
Loading history...
154
155
    /**
156
     * @var bool
157
     *
158
     * @ORM\Column(name="cache_content", type="boolean", nullable=false)
159
     */
160
    private $cacheContent = false;
0 ignored issues
show
The private property $cacheContent is not used, and could be removed.
Loading history...
161
162
    /**
163
     * @var bool
164
     *
165
     * @ORM\Column(name="auth_pass_encrypted", type="boolean", nullable=false)
166
     */
167
    private $authPassEncrypted = false;
0 ignored issues
show
The private property $authPassEncrypted is not used, and could be removed.
Loading history...
168
169
    /**
170
     * @var DateTime|null
171
     *
172
     * @ORM\Column(name="last_viewed", type="datetime", nullable=true)
173
     */
174
    private $lastViewed;
0 ignored issues
show
The private property $lastViewed is not used, and could be removed.
Loading history...
175
176
    /**
177
     * @var DateTime|null
178
     *
179
     * @ORM\Column(name="last_update_started", type="datetime", nullable=true)
180
     */
181
    private $lastUpdateStarted;
0 ignored issues
show
The private property $lastUpdateStarted is not used, and could be removed.
Loading history...
182
183
    /**
184
     * @var bool
185
     *
186
     * @ORM\Column(name="always_display_enclosures", type="boolean", nullable=false)
187
     */
188
    private $alwaysDisplayEnclosures = false;
0 ignored issues
show
The private property $alwaysDisplayEnclosures is not used, and could be removed.
Loading history...
189
190
    /**
191
     * @var int
192
     *
193
     * @ORM\Column(name="update_method", type="integer", nullable=false)
194
     */
195
    private $updateMethod = 0;
0 ignored issues
show
The private property $updateMethod is not used, and could be removed.
Loading history...
196
197
    /**
198
     * @var int
199
     *
200
     * @ORM\Column(name="order_id", type="integer", nullable=false)
201
     */
202
    private $orderId = 0;
0 ignored issues
show
The private property $orderId is not used, and could be removed.
Loading history...
203
204
    /**
205
     * @var bool
206
     *
207
     * @ORM\Column(name="mark_unread_on_update", type="boolean", nullable=false)
208
     */
209
    private $markUnreadOnUpdate = false;
0 ignored issues
show
The private property $markUnreadOnUpdate is not used, and could be removed.
Loading history...
210
211
    /**
212
     * @var bool
213
     *
214
     * @ORM\Column(name="update_on_checksum_change", type="boolean", nullable=false)
215
     */
216
    private $updateOnChecksumChange = false;
0 ignored issues
show
The private property $updateOnChecksumChange is not used, and could be removed.
Loading history...
217
218
    /**
219
     * @var bool
220
     *
221
     * @ORM\Column(name="strip_images", type="boolean", nullable=false)
222
     */
223
    private $stripImages = false;
0 ignored issues
show
The private property $stripImages is not used, and could be removed.
Loading history...
224
225
    /**
226
     * @var string
227
     *
228
     * @ORM\Column(name="view_settings", type="string", length=250, nullable=false)
229
     */
230
    private $viewSettings = '';
0 ignored issues
show
The private property $viewSettings is not used, and could be removed.
Loading history...
231
232
    /**
233
     * @var int
234
     *
235
     * @ORM\Column(name="pubsub_state", type="integer", nullable=false)
236
     */
237
    private $pubsubState = 0;
0 ignored issues
show
The private property $pubsubState is not used, and could be removed.
Loading history...
238
239
    /**
240
     * @var DateTime|null
241
     *
242
     * @ORM\Column(name="favicon_last_checked", type="datetime", nullable=true)
243
     */
244
    private $faviconLastChecked;
0 ignored issues
show
The private property $faviconLastChecked is not used, and could be removed.
Loading history...
245
246
    /**
247
     * @var string
248
     *
249
     * @ORM\Column(name="feed_language", type="string", length=100, nullable=false)
250
     */
251
    private $feedLanguage = '';
0 ignored issues
show
The private property $feedLanguage is not used, and could be removed.
Loading history...
252
253
    /**
254
     * @var FeedCategory
255
     *
256
     * @ORM\ManyToOne(targetEntity="FeedCategory")
257
     * @ORM\JoinColumns({
258
     *   @ORM\JoinColumn(name="cat_id", referencedColumnName="id")
259
     * })
260
     */
261
    private $category;
0 ignored issues
show
The private property $category is not used, and could be removed.
Loading history...
262
263
    /**
264
     * @var Feed
265
     *
266
     * @ORM\ManyToOne(targetEntity="Feed")
267
     * @ORM\JoinColumns({
268
     *   @ORM\JoinColumn(name="parent_feed", referencedColumnName="id")
269
     * })
270
     */
271
    private $parent;
0 ignored issues
show
The private property $parent is not used, and could be removed.
Loading history...
272
}
273