Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ItemC extends ViewableData implements TestOnly |
||
9 | { |
||
10 | // ItemC tests fields - Title has casting, Content doesn't. |
||
11 | private static $casting = [ |
||
|
|||
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() |
||
38 | } |
||
39 | } |
||
40 |