2016-10-14 14:30:05 +13:00
|
|
|
<?php
|
|
|
|
|
2024-09-23 14:31:50 +12:00
|
|
|
namespace SilverStripe\Model\Tests\ModelDataTest;
|
2016-10-14 14:30:05 +13:00
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2024-09-23 14:31:50 +12:00
|
|
|
use SilverStripe\Model\ModelData;
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2024-09-23 14:31:50 +12:00
|
|
|
class RequiresCasting extends ModelData implements TestOnly
|
2016-10-14 14:30:05 +13:00
|
|
|
{
|
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public $test = 'overwritten';
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2024-08-28 10:54:31 +12:00
|
|
|
public function forTemplate(): string
|
2016-12-16 17:34:21 +13:00
|
|
|
{
|
|
|
|
return 'casted';
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public function setValue()
|
|
|
|
{
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
}
|