Completed
Pull Request — master (#1352)
by
unknown
13:53
created

HybridResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 13
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTransformed() 0 4 1
A getResult() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
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;
13
14
use Elastica\Result;
15
16
class HybridResult
17
{
18
    protected $result;
19
    protected $transformed;
20
21
    public function __construct(Result $result, $transformed = null)
22
    {
23
        $this->result = $result;
24
        $this->transformed = $transformed;
25
    }
26
27
    public function getTransformed()
28
    {
29
        return $this->transformed;
30
    }
31
32
    public function getResult()
33
    {
34
        return $this->result;
35
    }
36
}
37