public function removeRecipient(string $recipient): self
    {
        $itemPosition = array_search($recipient, $this->recipients);

        if (false !== $itemPosition) {
            unset($this->recipients[$itemPosition]);
        }

        unset($this->recipientVariables[$recipient]);

        return $this;
    }
public function removeRecipient(string $recipient): self
    {
        $itemPosition = array_search($recipient, $this->recipients);

        if (false !== $itemPosition) {
            unset($this->recipients[$itemPosition]);
        }

        unset($this->recipientVariables[$recipient]);

        return $this;
    }
public function removeRecipient ( string $ recipient ) : self { $ itemPosition = array_search ( $ recipient , $ this -> recipients ) ; if ( false !== $ itemPosition ) { unset ( $ this -> recipients [ $ itemPosition ] ) ; } unset ( $ this -> recipientVariables [ $ recipient ] ) ; return $ this ; }
Removes a single recipient.

@param string $recipient

@return $this
Removes a single recipient .