ItemC::Link()   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
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace CWP\Core\Tests\AtomFeedTest;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\View\ViewableData;
7
8
class ItemC extends ViewableData implements TestOnly
9
{
10
    // ItemC tests fields - Title has casting, Content doesn't.
11
    private static $casting = [
0 ignored issues
show
introduced by
The private property $casting is not used, and could be removed.
Loading history...
12
        'Title' => 'Varchar',
13
        'AltContent' => 'Text',
14
    ];
15
16
    public $Title = 'ItemC';
17
18
    public function Title()
19
    {
20
        return "ItemC";
21
    }
22
23
    public function Content()
24
    {
25
        return "ItemC Content";
26
    }
27
28
    public $AltContent = "ItemC AltContent";
29
30
    public function Link()
31
    {
32
        return "item-c.html";
33
    }
34
35
    public function AbsoluteLink()
36
    {
37
        return "http://www.example.com/item-c.html";
38
    }
39
}
40