silverstripe-framework/tests/php/Core/Injector/InjectorTest/TestObject.php
2020-04-20 18:58:09 +01:00

34 lines
578 B
PHP

<?php
namespace SilverStripe\Core\Tests\Injector\InjectorTest;
use SilverStripe\Dev\TestOnly;
class TestObject implements TestOnly
{
public $sampleService;
public $methodCalls = [];
public function setSomething($v)
{
$this->sampleService = $v;
}
public function myMethod($arg)
{
$this->methodCalls[] = $arg;
}
public function noArgMethod()
{
$this->methodCalls[] = 'noArgMethod called';
}
protected function protectedMethod()
{
$this->methodCalls[] = 'protectedMethod called';
}
}