1 | <?php |
||
26 | class TransformedFinder implements PaginatedFinderInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var SearchableInterface |
||
30 | */ |
||
31 | protected $searchable; |
||
32 | |||
33 | /** |
||
34 | * @var ElasticaToModelTransformerInterface |
||
35 | */ |
||
36 | protected $transformer; |
||
37 | |||
38 | /** |
||
39 | * @param SearchableInterface $searchable |
||
40 | * @param ElasticaToModelTransformerInterface $transformer |
||
41 | */ |
||
42 | 7 | public function __construct(SearchableInterface $searchable, ElasticaToModelTransformerInterface $transformer) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 1 | public function find($query, $limit = null, $options = []) |
|
57 | |||
58 | /** |
||
59 | * @param $query |
||
60 | * @param null|int $limit |
||
61 | * @param array $options |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | 1 | public function findHybrid($query, $limit = null, $options = []) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 1 | public function findPaginated($query, $options = []) |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function findHybridPaginated($query) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 1 | public function createPaginatorAdapter($query, $options = []) |
|
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | 1 | public function createHybridPaginatorAdapter($query) |
|
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function createRawPaginatorAdapter($query, $options = []) |
||
121 | |||
122 | /** |
||
123 | * @param $query |
||
124 | * @param null|int $limit |
||
125 | * @param array $options |
||
126 | * |
||
127 | * @return array |
||
128 | */ |
||
129 | 1 | protected function search($query, $limit = null, $options = []) |
|
139 | } |
||
140 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.