original_string: public function setDeliveryOptions(DeliveryOptions $deliveryOptions): Letter
      {
          if ($this->envelope && $this->envelope->isNormalLetter()) {
              throw new LogicException('Delivery options are not supported for non-printed letters.');
          }
  
          $this->deliveryOptions = $deliveryOptions;
  
          return $this;
      }
code: public function setDeliveryOptions(DeliveryOptions $deliveryOptions): Letter
      {
          if ($this->envelope && $this->envelope->isNormalLetter()) {
              throw new LogicException('Delivery options are not supported for non-printed letters.');
          }
  
          $this->deliveryOptions = $deliveryOptions;
  
          return $this;
      }
code_tokens: public function setDeliveryOptions ( DeliveryOptions $ deliveryOptions ) : Letter { if ( $ this -> envelope && $ this -> envelope -> isNormalLetter ( ) ) { throw new LogicException ( 'Delivery options are not supported for non-printed letters.' ) ; } $ this -> deliveryOptions = $ deliveryOptions ; return $ this ; }
docstring: Set the delivery options
  
  @param DeliveryOptions $deliveryOptions
  
  @return self
  @throws LogicException If the letter isn't a hybrid (printed) letter
docstring_tokens: Set the delivery options