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;
    }
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;
    }
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 ; }
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
The option specifies whether a cover letter is generated for delivery or if it is included in the PDF attachment