FOSElasticaBundle/Tests/Functional/TypeObj.php
2015-02-09 09:40:49 +11:00

36 lines
658 B
PHP

<?php
/**
* This file is part of the FOSElasticaBundle project.
*
* (c) Infinite Networks Pty Ltd <http://www.infinite.net.au>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Tests\Functional;
class TypeObj
{
public $id = 5;
public $coll;
public $field1;
public $field2;
public function isIndexable()
{
return true;
}
public function isntIndexable()
{
return false;
}
public function getSerializableColl()
{
return iterator_to_array($this->coll, false);
}
}