1 | <?php |
||
22 | class ResultConverter |
||
23 | { |
||
24 | /** |
||
25 | * Current filter used for conversion |
||
26 | * |
||
27 | * @var AbstractPaginationQuery |
||
28 | */ |
||
29 | protected $filter; |
||
30 | |||
31 | /** |
||
32 | * Convert result into entity |
||
33 | * |
||
34 | * @param AbstractPaginationQuery $filter |
||
35 | * @param \SolrQueryResponse $queryResponse |
||
36 | * @return EntityType[] |
||
37 | */ |
||
38 | public function convert($filter, $queryResponse) |
||
64 | |||
65 | /** |
||
66 | * Handles mapped property defined by query filter |
||
67 | * |
||
68 | * @param $property |
||
69 | * @param $object |
||
70 | * @param $value |
||
71 | */ |
||
72 | public function handleMappedProperty($property,$object,$value) |
||
79 | |||
80 | /** |
||
81 | * Convert date formatted string into a DateTime object |
||
82 | * |
||
83 | * @param string $value |
||
84 | * @return \DateTime|string |
||
85 | */ |
||
86 | public function validateDate($value) |
||
97 | |||
98 | /** |
||
99 | * Create a new instance of ResultConverter |
||
100 | * @param ServiceLocatorInterface $sl |
||
101 | * @return ResultConverter |
||
102 | */ |
||
103 | static public function factory(ServiceLocatorInterface $sl) |
||
107 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.