| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Translate |
||
| 13 | { |
||
| 14 | protected string $current = 'name'; |
||
| 15 | protected string $parent = 'parentId'; |
||
| 16 | protected string $primary = 'id'; |
||
| 17 | protected string $content = 'content'; |
||
| 18 | protected ?string $created = 'created'; |
||
| 19 | |||
| 20 | 90 | public function getCurrentKey(): string |
|
| 23 | } |
||
| 24 | |||
| 25 | 64 | public function getParentKey(): string |
|
| 28 | } |
||
| 29 | |||
| 30 | 57 | public function getPrimaryKey(): string |
|
| 31 | { |
||
| 32 | 57 | return $this->primary; |
|
| 33 | } |
||
| 34 | |||
| 35 | 46 | public function getContentKey(): string |
|
| 36 | { |
||
| 37 | 46 | return $this->content; |
|
| 38 | } |
||
| 39 | |||
| 40 | 4 | public function getCreatedKey(): ?string |
|
| 43 | } |
||
| 44 | } |
||
| 45 |