Completed
Pull Request — master (#1119)
by Alessandro
06:26
created

TypeObject::isIndexable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the FOSElasticaBundle project.
5
 *
6
 * (c) Infinite Networks Pty Ltd <http://www.infinite.net.au>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FOS\ElasticaBundle\Tests\Functional;
13
14
class TypeObject
15
{
16
    public $id = 5;
17
    public $coll;
18
    public $field1;
19
    public $field2;
20
    public $field3;
21
22
    public function isIndexable()
23
    {
24
        return true;
25
    }
26
27
    public function isntIndexable()
28
    {
29
        return false;
30
    }
31
32
    public function getSerializableColl()
33
    {
34
        return iterator_to_array($this->coll, false);
35
    }
36
}
37