2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Core\Tests\ObjectTest;
|
|
|
|
|
2017-05-17 07:40:13 +02:00
|
|
|
class ExtendTest extends BaseObject
|
2016-10-14 03:30:05 +02:00
|
|
|
{
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $extensions = [
|
2016-12-16 05:34:21 +01:00
|
|
|
ExtendTest1::class,
|
|
|
|
ExtendTest2::class,
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01: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 03:30:05 +02:00
|
|
|
}
|