1 | <?php |
||
26 | class ResultConverter |
||
27 | { |
||
28 | /** |
||
29 | * Current filter used for conversion |
||
30 | * |
||
31 | * @var AbstractPaginationQuery |
||
32 | */ |
||
33 | protected $filter; |
||
34 | |||
35 | /** |
||
36 | * if set, the city name of the found location overwrites the general job location |
||
37 | * |
||
38 | * @var bool |
||
39 | */ |
||
40 | protected $useGeoLocation=false; |
||
41 | |||
42 | /** |
||
43 | * @var ServiceLocatorInterface |
||
44 | */ |
||
45 | protected $sl; |
||
46 | |||
47 | public function __construct(ServiceLocatorInterface $sl) |
||
51 | |||
52 | /** |
||
53 | * Convert result into entity |
||
54 | * |
||
55 | * @param AbstractPaginationQuery $filter |
||
56 | * @param \SolrQueryResponse $queryResponse |
||
57 | * @return EntityType[] |
||
58 | */ |
||
59 | public function convert($filter, $queryResponse) |
||
86 | |||
87 | /** |
||
88 | * Create a new instance of ResultConverter |
||
89 | * @param ServiceLocatorInterface $sl |
||
90 | * @return ResultConverter |
||
91 | */ |
||
92 | static public function factory(ServiceLocatorInterface $sl) |
||
96 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.