1 | <?php |
||
15 | trait LookupTrait |
||
16 | { |
||
17 | /** |
||
18 | * @param int $key |
||
19 | * @param RecordInterface $record |
||
20 | * @param ContextualCommandInterface $command |
||
21 | * |
||
22 | * @return mixed|null |
||
23 | */ |
||
24 | protected function lookupKey( |
||
46 | |||
47 | /** |
||
48 | * Key name. |
||
49 | * |
||
50 | * @param int $key |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | abstract protected function key(int $key): string; |
||
55 | |||
56 | /** |
||
57 | * Get primary key column |
||
58 | * |
||
59 | * @param RecordInterface $record |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | abstract protected function primaryColumnOf(RecordInterface $record): string; |
||
64 | } |