public function addSource( string $sourceName, ISource $source ) : Translator
   {

      $source->setLocale( $this->_locale );

      $this->_sources[ $sourceName ] = $source;

      return $this;

   }
public function addSource( string $sourceName, ISource $source ) : Translator
   {

      $source->setLocale( $this->_locale );

      $this->_sources[ $sourceName ] = $source;

      return $this;

   }
public function addSource ( string $ sourceName , ISource $ source ) : Translator { $ source -> setLocale ( $ this -> _locale ) ; $ this -> _sources [ $ sourceName ] = $ source ; return $ this ; }
Adds a source with an associated name.

@param string                               $sourceName The unique source name
@param \Niirrty\Translation\Sources\ISource $source
@return \Niirrty\Translation\Translator
Adds a source with an associated name .