RegistryImportFeedEntry::Description()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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
introduced by
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