| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ItemA extends ViewableData implements TestOnly |
||
| 10 | { |
||
| 11 | // Atom-feed items must have $casting/$db information. |
||
| 12 | private static $casting = [ |
||
|
|
|||
| 13 | 'Title' => 'Varchar', |
||
| 14 | 'Content' => 'Text', |
||
| 15 | 'AltContent' => 'Text', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public $Title = 'ItemA'; |
||
| 19 | |||
| 20 | public function Title() |
||
| 21 | { |
||
| 22 | return "ItemA"; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function Content() |
||
| 28 | } |
||
| 29 | |||
| 30 | public function AltContent() |
||
| 31 | { |
||
| 32 | return "ItemA AltContent"; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function Link($action = null) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |