RegistryImportFeedEntry   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 15
c 1
b 0
f 0
dl 0
loc 37
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A Link() 0 3 1
A Title() 0 3 1
A Description() 0 3 1
A Date() 0 3 1
A __construct() 0 6 1
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