original_string: public function addMessages($locale, $group, array $messages, $namespace = null)
      {
          $namespace = $namespace ?: '*';
  
          $this->messages[$namespace][$locale][$group] = $messages;
  
          return $this;
      }
code: public function addMessages($locale, $group, array $messages, $namespace = null)
      {
          $namespace = $namespace ?: '*';
  
          $this->messages[$namespace][$locale][$group] = $messages;
  
          return $this;
      }
code_tokens: public function addMessages ( $ locale , $ group , array $ messages , $ namespace = null ) { $ namespace = $ namespace ? : '*' ; $ this -> messages [ $ namespace ] [ $ locale ] [ $ group ] = $ messages ; return $ this ; }
docstring: Add messages to the loader.
  
  @param  string  $locale
  @param  string  $group
  @param  array  $messages
  @param  string|null  $namespace
  @return $this
docstring_tokens: Add messages to the loader .