Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Add setter to the $localeKey.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 15, 2014
1 parent 920d2a7 commit 3b5fdb9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Vinkla/Translator/TranslatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getLocale()
}

/**
* Fetch the localisation column key.
* Get the localisation column key.
*
* @return string
*/
Expand All @@ -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.
*
Expand Down

0 comments on commit 3b5fdb9

Please sign in to comment.