Skip to content

Commit 4f45805

Browse files
committed
add missing method to contract
1 parent e9c5dc3 commit 4f45805

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Translatable/Contracts/Translatable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public function translations(): HasMany;
1717

1818
public function deleteTranslations($locales = null): void;
1919

20+
public function getDefaultLocale(): ?string;
21+
2022
public function getNewTranslation(string $locale): Model;
2123

2224
public function getTranslation(?string $locale = null, bool $withFallback = null): ?Model;

src/Translatable/Translatable.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ public function getAttribute($key)
135135
return parent::getAttribute($key);
136136
}
137137

138-
/**
139-
* @internal will change to protected
140-
*/
141138
public function getDefaultLocale(): ?string
142139
{
143140
return $this->defaultLocale;

0 commit comments

Comments
 (0)