silverstripe-framework/tests/php/Core/ObjectTest/ExtendTest.php
Damian Mooyman fba8e2c245 API Remove Object class
API DataObjectSchema::manyManyComponent() return array is now associative array
2017-05-23 13:50:35 +12:00

21 lines
462 B
PHP

<?php
namespace SilverStripe\Core\Tests\ObjectTest;
class ExtendTest extends BaseObject
{
private static $extensions = array(
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)";
}
}