silverstripe-framework/tests/php/Core/ObjectTest/ExtendTest2.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

23 lines
479 B
PHP

<?php
namespace SilverStripe\Core\Tests\ObjectTest;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;
class ExtendTest2 extends Extension implements TestOnly
{
protected $constructorArgs = [];
public function __construct()
{
$this->constructorArgs = func_get_args();
}
public function extendableMethod($argument = null)
{
$args = implode(',', array_filter(func_get_args()));
return "ExtendTest2($args)";
}
}