silverstripe-framework/tests/php/ORM/ArrayListTest/TestObject.php

22 lines
353 B
PHP
Raw Permalink Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\ORM\Tests\ArrayListTest;
class TestObject
{
public $First;
public $Second;
2016-10-14 03:30:05 +02:00
public function __construct($first, $second)
{
$this->First = $first;
$this->Second = $second;
}
2016-10-14 03:30:05 +02:00
public function toMap()
{
return ['First' => $this->First, 'Second' => $this->Second];
}
2016-10-14 03:30:05 +02:00
}