mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-03 00:07:58 +02:00
34 lines
517 B
PHP
34 lines
517 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';
|
|
}
|
|
}
|