Completed
Push — 1.0 ( 0a54d3...4810b7 )
by Simonas
9s
created

RawIterator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAggregations() 0 4 1
A convertDocument() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[email protected]>
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 ONGR\ElasticsearchBundle\Result;
13
14
/**
15
 * Raw documents iterator.
16
 */
17
class RawIterator extends AbstractResultsIterator
18
{
19
    /**
20
     * Returns aggregations.
21
     *
22
     * @return array
23
     */
24
    public function getAggregations()
25
    {
26
        return parent::getAggregations();
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function convertDocument(array $document)
33
    {
34
        return $document;
35
    }
36
}
37