mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
510 B
PHP
24 lines
510 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()
|
|
{
|
|
parent::__construct();
|
|
$this->constructorArgs = func_get_args();
|
|
}
|
|
|
|
public function extendableMethod($argument = null)
|
|
{
|
|
$args = implode(',', array_filter(func_get_args()));
|
|
return "ExtendTest2($args)";
|
|
}
|
|
}
|