silverstripe-framework/tests/php/Core/ObjectTest/ExtendTest.php
2020-04-20 18:58:09 +01:00

21 lines
457 B
PHP

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