original_string: public function read( $identifier, ?string $sourceName = null, $defaultTranslation = false )
     {
  
        if ( null !== $sourceName && isset( $this->_sources[ $sourceName ] ) )
        {
           // read from specific source
           return $this->_sources[ $sourceName ]->read( $identifier, $defaultTranslation );
        }
  
        foreach ( $this->_sources as $source )
        {
           $result = $source->read( $identifier, static::USS );
           if ( static::USS !== $result )
           {
              return $result;
           }
        }
  
        return $defaultTranslation;
  
     }
code: public function read( $identifier, ?string $sourceName = null, $defaultTranslation = false )
     {
  
        if ( null !== $sourceName && isset( $this->_sources[ $sourceName ] ) )
        {
           // read from specific source
           return $this->_sources[ $sourceName ]->read( $identifier, $defaultTranslation );
        }
  
        foreach ( $this->_sources as $source )
        {
           $result = $source->read( $identifier, static::USS );
           if ( static::USS !== $result )
           {
              return $result;
           }
        }
  
        return $defaultTranslation;
  
     }
code_tokens: public function read ( $ identifier , ? string $ sourceName = null , $ defaultTranslation = false ) { if ( null !== $ sourceName && isset ( $ this -> _sources [ $ sourceName ] ) ) { // read from specific source return $ this -> _sources [ $ sourceName ] -> read ( $ identifier , $ defaultTranslation ) ; } foreach ( $ this -> _sources as $ source ) { $ result = $ source -> read ( $ identifier , static :: USS ) ; if ( static :: USS !== $ result ) { return $ result ; } } return $ defaultTranslation ; }
docstring: Reads the translation and return it.
  
  The returned translation can be of each known type, depending to the requirements.
  
  If a valid source index is defined, only this source is used.
  
  @param string|int  $identifier The translation identifier
  @param string|null $sourceName The name of the source or NULL for search all sources
  @param mixed       $defaultTranslation Is returned if the translation was not found
  @return mixed
docstring_tokens: Reads the translation and return it .