silverstripe-framework/tests/php/Core/Injector/InjectorTest/TestObject.php
2016-12-19 16:08:19 +13:00

34 lines
583 B
PHP

<?php
namespace SilverStripe\Core\Tests\Injector\InjectorTest;
use SilverStripe\Dev\TestOnly;
class TestObject implements TestOnly
{
public $sampleService;
public $methodCalls = array();
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';
}
}