Completed
Push — master ( 94b1e6...1718aa )
by Karel
04:45 queued 10s
created

AbstractElasticaToModelTransformer::getSortingClosure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
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\Transformer;
13
14
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
15
16
abstract class AbstractElasticaToModelTransformer implements ElasticaToModelTransformerInterface
17
{
18
    /**
19
     * PropertyAccessor instance.
20
     *
21
     * @var PropertyAccessorInterface
22
     */
23
    protected $propertyAccessor;
24
25
    /**
26
     * Set the PropertyAccessor instance.
27
     *
28
     * @param PropertyAccessorInterface $propertyAccessor
29
     */
30 11
    public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
31
    {
32 11
        $this->propertyAccessor = $propertyAccessor;
33 11
    }
34
}
35