mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-18 23:46:21 +02:00
34 lines
583 B
PHP
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';
|
|
}
|
|
}
|