original_string: public function addRecipientPrinted(Recipient\Hybrid $recipient): Envelope
      {
          if ($this->isNormalLetter()) {
              throw new LogicException(
                  sprintf('Can not set recipientsPrinted if message type is "%s"', self::LETTER_TYPE_NORMAL)
              );
          }
  
          if (count($this->getRecipients())) {
              throw new LogicException('It must not be set more than one printed recipient');
          }
  
          $this->data['recipientsPrinted'][] = $recipient;
  
          return $this;
      }
code: public function addRecipientPrinted(Recipient\Hybrid $recipient): Envelope
      {
          if ($this->isNormalLetter()) {
              throw new LogicException(
                  sprintf('Can not set recipientsPrinted if message type is "%s"', self::LETTER_TYPE_NORMAL)
              );
          }
  
          if (count($this->getRecipients())) {
              throw new LogicException('It must not be set more than one printed recipient');
          }
  
          $this->data['recipientsPrinted'][] = $recipient;
  
          return $this;
      }
code_tokens: public function addRecipientPrinted ( Recipient \ Hybrid $ recipient ) : Envelope { if ( $ this -> isNormalLetter ( ) ) { throw new LogicException ( sprintf ( 'Can not set recipientsPrinted if message type is "%s"' , self :: LETTER_TYPE_NORMAL ) ) ; } if ( count ( $ this -> getRecipients ( ) ) ) { throw new LogicException ( 'It must not be set more than one printed recipient' ) ; } $ this -> data [ 'recipientsPrinted' ] [ ] = $ recipient ; return $ this ; }
docstring: Add a hybrid recipient for printed letters
  
  @param Recipient\Hybrid|AbstractRecipient $recipient
  
  @return self
docstring_tokens: Add a hybrid recipient for printed letters