public function setUnderline($value) {
    if (is_object($value) && !$value instanceof TextStrokeStyle) {
      $this->triggerError('Object not of type TextStrokeStyle');
    }
    else {
      $this->underline = $value;
    }
    return $this;
  }
public function setUnderline($value) {
    if (is_object($value) && !$value instanceof TextStrokeStyle) {
      $this->triggerError('Object not of type TextStrokeStyle');
    }
    else {
      $this->underline = $value;
    }
    return $this;
  }
public function setUnderline ( $ value ) { if ( is_object ( $ value ) && ! $ value instanceof TextStrokeStyle ) { $ this -> triggerError ( 'Object not of type TextStrokeStyle' ) ; } else { $ this -> underline = $ value ; } return $ this ; }
Setter for underline.

@param bool|\ChapterThree\AppleNewsAPI\Document\Styles\TextStrokeStyle $value
Underline.

@return $this
Setter for underline .