DataTransformer/SingleRecipientDataTransformer.php
/**
     * Transforms a collection of recipients into a string.
     *
     * @param UserInterface $recipient
     *
     * @return string
     */
Transforms a collection of recipients into a string.

@return string
Transforms a collection of recipients into a string . @return string
public function transform($recipient): string
    {
        if (is_object($recipient) === false || ($recipient instanceof UserInterface) === false) {
            return '';
        }
        return $this->userToUsernameTransformer->transform($recipient);
    }
public function transform ( $ recipient ) : string { if ( is_object ( $ recipient ) === false || ( $ recipient instanceof UserInterface ) === false ) { return '' ; } return $ this -> userToUsernameTransformer -> transform ( $ recipient ) ; }
Transforms a collection of recipients into a string.
Transforms a collection of recipients into a string .