silverstripe-framework/tests/php/Core/ObjectTest/T2.php
Damian Mooyman fba8e2c245 API Remove Object class
API DataObjectSchema::manyManyComponent() return array is now associative array
2017-05-23 13:50:35 +12:00

38 lines
747 B
PHP

<?php
namespace SilverStripe\Core\Tests\ObjectTest;
class T2 extends BaseObject
{
protected $failover;
protected $failoverArr = array();
public function __construct()
{
$this->failover = new T1A();
$this->failoverArr[0] = new T1B();
$this->failoverArr[1] = new T1C();
parent::__construct();
}
public function defineMethods()
{
$this->addWrapperMethod('Wrapping', 'wrappedMethod');
$this->addMethodsFrom('failover');
$this->addMethodsFrom('failoverArr', 0);
$this->addMethodsFrom('failoverArr', 1);
}
public function wrappedMethod($val)
{
return $val;
}
public function normalMethod()
{
return true;
}
}