Issues (39)

src/RegistryImportFeedEntry.php (1 issue)

Severity
1
<?php
2
3
namespace SilverStripe\Registry;
4
5
use SilverStripe\View\ViewableData;
6
7
class RegistryImportFeedEntry extends ViewableData
8
{
9
    protected $title;
10
    protected $description;
11
    protected $date;
12
    protected $link;
13
14
    private static $casting = [
0 ignored issues
show
The private property $casting is not used, and could be removed.
Loading history...
15
        'Date' => 'DBDatetime',
16
    ];
17
18
    public function __construct($title, $description, $date, $link)
19
    {
20
        $this->title = $title;
21
        $this->description = $description;
22
        $this->date = $date;
23
        $this->link = $link;
24
    }
25
26
    public function Link()
27
    {
28
        return $this->link;
29
    }
30
31
    public function Description()
32
    {
33
        return $this->description;
34
    }
35
36
    public function Title()
37
    {
38
        return $this->title;
39
    }
40
41
    public function Date()
42
    {
43
        return $this->date;
44
    }
45
}
46