1 | <?php |
||
25 | abstract class AbstractElasticaToModelTransformer implements ElasticaToModelTransformerInterface |
||
26 | { |
||
27 | /** |
||
28 | * PropertyAccessor instance. |
||
29 | * |
||
30 | * @var PropertyAccessorInterface |
||
31 | */ |
||
32 | protected $propertyAccessor; |
||
33 | |||
34 | /** |
||
35 | * Set the PropertyAccessor instance. |
||
36 | * |
||
37 | * @param PropertyAccessorInterface $propertyAccessor |
||
38 | */ |
||
39 | 10 | public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor) |
|
43 | |||
44 | /** |
||
45 | * Returns a sorting closure to be used with usort() to put retrieved objects |
||
46 | * back in the order that they were returned by ElasticSearch. |
||
47 | * |
||
48 | * @param array $idPos |
||
49 | * @param string $identifierPath |
||
50 | * |
||
51 | * @return callable |
||
52 | */ |
||
53 | protected function getSortingClosure(array $idPos, $identifierPath) |
||
61 | } |
||
62 |