Skip to content

Commit

Permalink
Add trans docblock (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinruscoe authored and kylekatarnls committed Oct 26, 2018
1 parent 8889739 commit b9c255b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Carbon/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ public function removeDirectory(string $directory)
}));
}

/**
* Returns the translation.
*
* @param string $id
* @param array $parameters
* @param string $domain
* @param string $locale
*
* @return string
*/
public function trans($id, array $parameters = [], $domain = null, $locale = null)
{
if (null === $domain) {
Expand Down

0 comments on commit b9c255b

Please sign in to comment.