mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-16 22:46:20 +02:00
32 lines
593 B
PHP
32 lines
593 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Core\Tests\Injector\InjectorTest;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use SilverStripe\View\ViewableData;
|
||
|
|
||
|
/**
|
||
|
* Make sure DI works with ViewableData's implementation of __isset
|
||
|
*/
|
||
|
class TestSetterInjections extends ViewableData implements TestOnly
|
||
|
{
|
||
|
|
||
|
protected $backend;
|
||
|
|
||
|
/** @config */
|
||
|
private static $dependencies = array(
|
||
|
'backend' => '%$SilverStripe\\Core\\Tests\\Injector\\InjectorTest\\NewRequirementsBackend'
|
||
|
);
|
||
|
|
||
|
public function getBackend()
|
||
|
{
|
||
|
return $this->backend;
|
||
|
}
|
||
|
|
||
|
public function setBackend($backend)
|
||
|
{
|
||
|
$this->backend = $backend;
|
||
|
}
|
||
|
|
||
|
}
|