1 | <?php |
||
13 | trait MorphedTrait |
||
14 | { |
||
15 | protected function configureMorphed(SelectQuery $query, AbstractLoader $parent) |
||
19 | |||
20 | /** |
||
21 | * Indication that relation is morphed. |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | protected function isMorphed(): bool |
||
29 | |||
30 | /** |
||
31 | * Generate sql identifier using loader alias and value from relation definition. Key name to be |
||
32 | * fetched from schema. |
||
33 | * |
||
34 | * Example: |
||
35 | * $this->getKey(Record::OUTER_KEY); |
||
36 | * |
||
37 | * @param string $key |
||
38 | * |
||
39 | * @return string|null |
||
40 | */ |
||
41 | abstract protected function localKey($key); |
||
42 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.