original_string: public function setCoverLetter($coverLetter): DeliveryOptions
      {
          if (!in_array($coverLetter, static::getOptionsForCoverLetter())) {
              throw new InvalidArgumentException(
                  sprintf('Property %s is not supported for %s', $coverLetter, __FUNCTION__)
              );
          }
  
          $this->data['coverLetter'] = $coverLetter;
  
          return $this;
      }
code: public function setCoverLetter($coverLetter): DeliveryOptions
      {
          if (!in_array($coverLetter, static::getOptionsForCoverLetter())) {
              throw new InvalidArgumentException(
                  sprintf('Property %s is not supported for %s', $coverLetter, __FUNCTION__)
              );
          }
  
          $this->data['coverLetter'] = $coverLetter;
  
          return $this;
      }
code_tokens: public function setCoverLetter ( $ coverLetter ) : DeliveryOptions { if ( ! in_array ( $ coverLetter , static :: getOptionsForCoverLetter ( ) ) ) { throw new InvalidArgumentException ( sprintf ( 'Property %s is not supported for %s' , $ coverLetter , __FUNCTION__ ) ) ; } $ this -> data [ 'coverLetter' ] = $ coverLetter ; return $ this ; }
docstring: The option specifies whether a cover letter is generated for delivery or if it is included in the PDF attachment
  
  @param string $coverLetter
  
  @return self
  @throws InvalidArgumentException
docstring_tokens: The option specifies whether a cover letter is generated for delivery or if it is included in the PDF attachment