silverstripe-framework/tests/php/Model/ModelDataTest/CastingClass.php

16 lines
365 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Model\Tests\ModelDataTest;
2016-10-14 03:30:05 +02:00
use SilverStripe\Dev\TestOnly;
use SilverStripe\Model\ModelData;
2016-10-14 03:30:05 +02:00
class CastingClass extends ModelData implements TestOnly
2016-10-14 03:30:05 +02:00
{
private static $casting = [
'Field' => 'CastingType',
'Argument' => 'ArgumentType(Argument)',
'ArrayArgument' => 'ArrayArgumentType([foo, bar])'
];
2016-10-14 03:30:05 +02:00
}