setParameter() public method

Set a parameter used to manage error messages
public setParameter ( $parameter )
$parameter
 /**
  * Get the lang directory path
  *
  * @param $lang_folder_path
  *
  * @return string the path
  * @throws \Potsky\LaravelLocalizationHelpers\Factory\Exception
  */
 public function getLangPath($lang_folder_path = null)
 {
     if (empty($lang_folder_path)) {
         $paths = array(app_path() . DIRECTORY_SEPARATOR . 'lang', base_path() . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'lang');
         foreach ($paths as $path) {
             if (file_exists($path)) {
                 return $path;
                 //@codeCoverageIgnoreStart
             }
         }
         $e = new Exception('', self::NO_LANG_FOLDER_FOUND_IN_THESE_PATHS);
         $e->setParameter($paths);
         throw $e;
         //@codeCoverageIgnoreEnd
     } else {
         if (file_exists($lang_folder_path)) {
             return $lang_folder_path;
         }
         $e = new Exception('', self::NO_LANG_FOLDER_FOUND_IN_YOUR_CUSTOM_PATH);
         $e->setParameter($lang_folder_path);
         throw $e;
     }
 }