2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
2024-09-23 04:31:50 +02:00
|
|
|
namespace SilverStripe\Model\Tests\ModelDataTest;
|
2016-10-14 03:30:05 +02:00
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2024-09-23 04:31:50 +02:00
|
|
|
use SilverStripe\Model\ModelData;
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2024-09-23 04:31:50 +02:00
|
|
|
class CastingClass extends ModelData implements TestOnly
|
2016-10-14 03:30:05 +02:00
|
|
|
{
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $casting = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'Field' => 'CastingType',
|
|
|
|
'Argument' => 'ArgumentType(Argument)',
|
2020-04-20 09:07:53 +02:00
|
|
|
'ArrayArgument' => 'ArrayArgumentType([foo, bar])'
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|