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;
    }
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;
    }
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 ; }
Add a hybrid recipient for printed letters

@param Recipient\Hybrid|AbstractRecipient $recipient

@return self
Add a hybrid recipient for printed letters