From 3b5fdb905d74777e2381feede466f8b6cc02fac7 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Wed, 15 Oct 2014 10:21:21 +0200 Subject: [PATCH] Add setter to the $localeKey. --- src/Vinkla/Translator/TranslatorTrait.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Vinkla/Translator/TranslatorTrait.php b/src/Vinkla/Translator/TranslatorTrait.php index 8ba99ac..e84edd1 100644 --- a/src/Vinkla/Translator/TranslatorTrait.php +++ b/src/Vinkla/Translator/TranslatorTrait.php @@ -108,7 +108,7 @@ public function getLocale() } /** - * Fetch the localisation column key. + * Get the localisation column key. * * @return string */ @@ -117,6 +117,16 @@ public function getLocaleKey() return $this->localeKey ?: Config::get('translator::key'); } + /** + * Set the localisation column key. + * + * @param string $localeKey + */ + public function setLocaleKey($localeKey) + { + $this->localeKey = $localeKey; + } + /** * Setup a one to many relation. *