21 lines
457 B
PHP
Raw Normal View History

2016-10-14 14:30:05 +13:00
<?php
namespace SilverStripe\Core\Tests\ObjectTest;
class ExtendTest extends BaseObject
2016-10-14 14:30:05 +13:00
{
private static $extensions = [
ExtendTest1::class,
ExtendTest2::class,
];
2016-10-14 14:30:05 +13:00
public function extendableMethod(&$argument = null, &$argument2 = null)
{
$args = implode(',', array_filter(func_get_args()));
if ($argument2) {
$argument2 = 'objectmodified';
}
return "ExtendTest($args)";
}
2016-10-14 14:30:05 +13:00
}