| 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 | private function lookupKey( |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Key name. |
||
| 47 | * |
||
| 48 | * @param int $key |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | abstract protected function key(int $key): string; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get primary key column |
||
| 56 | * |
||
| 57 | * @param RecordInterface $record |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | abstract protected function primaryColumnOf(RecordInterface $record): string; |
||
| 62 | } |