1 | <?php |
||
13 | abstract class AbstractEndpointRepository implements |
||
14 | DatabaseAwareInterface, |
||
15 | RedisAwareInterface |
||
16 | { |
||
17 | use DatabaseAwareTrait; |
||
18 | use RedisAwareTrait; |
||
19 | |||
20 | /** |
||
21 | * Determines the table that the DB is interfacing with |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | abstract public function getTable(); |
||
26 | |||
27 | /** |
||
28 | * Determines the primary key of the table |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | abstract public function getPrimaryKey(); |
||
33 | |||
34 | /** |
||
35 | * Determines the Result key of the table |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | abstract public function getResultKey(); |
||
40 | |||
41 | /** |
||
42 | * Builds a new query factory ready for use with the QueryObjects |
||
43 | * |
||
44 | * @return \Aura\SqlQuery\AbstractQuery |
||
45 | */ |
||
46 | public function newQuery() |
||
55 | |||
56 | /** |
||
57 | * Sets up the resulting query based off properties present in the supplied object. |
||
58 | * |
||
59 | * @see \Ps2alerts\Api\QueryObjects\QueryObject |
||
60 | * |
||
61 | * @param \Ps2alerts\Api\QueryObjects\QueryObject $queryObject |
||
62 | * @return array |
||
63 | */ |
||
64 | public function read(QueryObject $queryObject) |
||
143 | |||
144 | /** |
||
145 | * Sets up the PDO Driver, then executes the query based on dimension. |
||
146 | * |
||
147 | * @param \Aura\SqlQuery\AbstractQuery $query |
||
148 | * @param \Ps2alerts\Api\QueryObjects\QueryObject $queryObject Sent QueryObject to read dimension |
||
149 | * @return array The final data |
||
150 | */ |
||
151 | public function prepareAndExecuteQuery(AbstractQuery $query, QueryObject $queryObject) |
||
161 | } |
||
162 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.