2016-10-14 14:30:05 +13:00
|
|
|
<?php
|
|
|
|
|
2024-09-23 14:31:50 +12:00
|
|
|
namespace SilverStripe\Model\Tests\List\ArrayListTest;
|
2016-10-14 14:30:05 +13:00
|
|
|
|
|
|
|
class TestObject
|
|
|
|
{
|
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public $First;
|
|
|
|
public $Second;
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public function __construct($first, $second)
|
|
|
|
{
|
|
|
|
$this->First = $first;
|
|
|
|
$this->Second = $second;
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
public function toMap()
|
|
|
|
{
|
2020-04-20 18:58:09 +01:00
|
|
|
return ['First' => $this->First, 'Second' => $this->Second];
|
2016-12-16 17:34:21 +13:00
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
}
|