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

HybridResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
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