1 | <?php |
||
5 | trait FlexibleKeyMatcherTrait |
||
6 | { |
||
7 | /** |
||
8 | * Given a key, return the correct array of conditions to be used in a Match call |
||
9 | * |
||
10 | * @param string|int $key |
||
11 | * @return array |
||
12 | * @throws \Exception if the key can not be positively identified (eg. a string which could be an identifier or a remote_id) |
||
13 | */ |
||
14 | abstract protected function getConditionsFromKey($key); |
||
15 | |||
16 | /** |
||
17 | * @param string|int|array $key We go overboard with flexibility and accept an array of conditions, besides the single key. |
||
18 | * This allow us to do some funky stuff when users have to specify location ids |
||
19 | * @return mixed |
||
20 | */ |
||
21 | public function matchOneByKey($key) |
||
25 | } |
||
26 |
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.