Issues (1270)

src/Model/UserEntry.php (14 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(indexes={@ORM\Index(name="ref_id", columns={"ref_id"}), @ORM\Index(name="orig_feed_id", columns={"orig_feed_id"}), @ORM\Index(name="ttrss_user_entries_unread_idx", columns={"unread"}), @ORM\Index(name="feed_id", columns={"feed_id"}), @ORM\Index(name="owner_uid", columns={"owner_uid"})})
15
 * @ORM\Entity
16
 */
17
class UserEntry extends Model
18
{
19
    use Identified,
20
        Owned;
21
22
    /**
23
     * @var string
24
     *
25
     * @ORM\Column(name="uuid", type="string", length=200, nullable=false)
26
     */
27
    private $uuid;
0 ignored issues
show
The private property $uuid is not used, and could be removed.
Loading history...
28
29
    /**
30
     * @var bool
31
     *
32
     * @ORM\Column(name="marked", type="boolean", nullable=false)
33
     */
34
    private $marked = false;
0 ignored issues
show
The private property $marked is not used, and could be removed.
Loading history...
35
36
    /**
37
     * @var bool
38
     *
39
     * @ORM\Column(name="published", type="boolean", nullable=false)
40
     */
41
    private $published = false;
0 ignored issues
show
The private property $published is not used, and could be removed.
Loading history...
42
43
    /**
44
     * @var string
45
     *
46
     * @ORM\Column(name="tag_cache", type="text", length=65535, nullable=false)
47
     */
48
    private $tagCache;
0 ignored issues
show
The private property $tagCache is not used, and could be removed.
Loading history...
49
50
    /**
51
     * @var string
52
     *
53
     * @ORM\Column(name="label_cache", type="text", length=65535, nullable=false)
54
     */
55
    private $labelCache;
0 ignored issues
show
The private property $labelCache is not used, and could be removed.
Loading history...
56
57
    /**
58
     * @var DateTime|null
59
     *
60
     * @ORM\Column(name="last_read", type="datetime", nullable=true)
61
     */
62
    private $lastRead;
0 ignored issues
show
The private property $lastRead is not used, and could be removed.
Loading history...
63
64
    /**
65
     * @var int
66
     *
67
     * @ORM\Column(name="score", type="integer", nullable=false)
68
     */
69
    private $score = 0;
0 ignored issues
show
The private property $score is not used, and could be removed.
Loading history...
70
71
    /**
72
     * @var string|null
73
     *
74
     * @ORM\Column(name="note", type="text", length=0, nullable=true)
75
     */
76
    private $note;
0 ignored issues
show
The private property $note is not used, and could be removed.
Loading history...
77
78
    /**
79
     * @var DateTime|null
80
     *
81
     * @ORM\Column(name="last_marked", type="datetime", nullable=true)
82
     */
83
    private $lastMarked;
0 ignored issues
show
The private property $lastMarked is not used, and could be removed.
Loading history...
84
85
    /**
86
     * @var DateTime|null
87
     *
88
     * @ORM\Column(name="last_published", type="datetime", nullable=true)
89
     */
90
    private $lastPublished;
0 ignored issues
show
The private property $lastPublished is not used, and could be removed.
Loading history...
91
92
    /**
93
     * @var bool
94
     *
95
     * @ORM\Column(name="unread", type="boolean", nullable=false)
96
     */
97
    private $unread = true;
0 ignored issues
show
The private property $unread is not used, and could be removed.
Loading history...
98
99
    /**
100
     * @var Entry
101
     *
102
     * @ORM\ManyToOne(targetEntity="Entry")
103
     * @ORM\JoinColumns({
104
     *   @ORM\JoinColumn(name="ref_id", referencedColumnName="id")
105
     * })
106
     */
107
    private $entry;
0 ignored issues
show
The private property $entry is not used, and could be removed.
Loading history...
108
109
    /**
110
     * @var Feed
111
     *
112
     * @ORM\ManyToOne(targetEntity="Feed")
113
     * @ORM\JoinColumns({
114
     *   @ORM\JoinColumn(name="feed_id", referencedColumnName="id")
115
     * })
116
     */
117
    private $feed;
0 ignored issues
show
The private property $feed is not used, and could be removed.
Loading history...
118
119
    /**
120
     * @var ArchivedFeed
121
     *
122
     * @ORM\ManyToOne(targetEntity="ArchivedFeed")
123
     * @ORM\JoinColumns({
124
     *   @ORM\JoinColumn(name="orig_feed_id", referencedColumnName="id")
125
     * })
126
     */
127
    private $origFeed;
0 ignored issues
show
The private property $origFeed is not used, and could be removed.
Loading history...
128
}
129