original_string: public function addTextStyle($name, TextStyle $text_style) {
      $this->textStyles[(string) $name] = $text_style;
      return $this;
    }
code: public function addTextStyle($name, TextStyle $text_style) {
      $this->textStyles[(string) $name] = $text_style;
      return $this;
    }
code_tokens: public function addTextStyle ( $ name , TextStyle $ text_style ) { $ this -> textStyles [ ( string ) $ name ] = $ text_style ; return $ this ; }
docstring: Setter for textStyles.
  
  @param mixed $name
  Name.
  @param \ChapterThree\AppleNewsAPI\Document\Styles\TextStyle $text_style
  TextStyle.
  
  @return $this
docstring_tokens: Setter for textStyles .