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

TypeObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 1
cbo 0
dl 0
loc 23
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isIndexable() 0 4 1
A isntIndexable() 0 4 1
A getSerializableColl() 0 4 1
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