original_string: public function setData( array $data, bool $doReload = true )
     {
  
        $this->logInfo( 'Manual set new data' . ( $doReload ? ' and reload.' : '.' ), __CLASS__ );
  
        $this->_options[ 'data' ] = $data;
  
        if ( $doReload )
        {
           $this->reload();
        }
  
        return $this;
  
     }
code: public function setData( array $data, bool $doReload = true )
     {
  
        $this->logInfo( 'Manual set new data' . ( $doReload ? ' and reload.' : '.' ), __CLASS__ );
  
        $this->_options[ 'data' ] = $data;
  
        if ( $doReload )
        {
           $this->reload();
        }
  
        return $this;
  
     }
code_tokens: public function setData ( array $ data , bool $ doReload = true ) { $ this -> logInfo ( 'Manual set new data' . ( $ doReload ? ' and reload.' : '.' ) , __CLASS__ ) ; $ this -> _options [ 'data' ] = $ data ; if ( $ doReload ) { $ this -> reload ( ) ; } return $ this ; }
docstring: Sets a new array with translation data that should be used.
  
  The array keys are the identifiers (string|int) the values must be arrays with items 'text' and optionally
  with 'category' or the values is a string that will be converted to [ 'text' => $value ]
  
  @param array $data
  @param bool  $doReload
  @return \Niirrty\Translation\Sources\AbstractFileSource
docstring_tokens: Sets a new array with translation data that should be used .