public function getFullAddress(): string
    {
        $address = \sprintf('%s@%s', $this->mailbox, $this->hostname);
        if (null !== $this->name) {
            $address = \sprintf('"%s" <%s>', \addcslashes($this->name, '"'), $address);
        }

        return $address;
    }
public function getFullAddress(): string
    {
        $address = \sprintf('%s@%s', $this->mailbox, $this->hostname);
        if (null !== $this->name) {
            $address = \sprintf('"%s" <%s>', \addcslashes($this->name, '"'), $address);
        }

        return $address;
    }
public function getFullAddress ( ) : string { $ address = \ sprintf ( '%s@%s' , $ this -> mailbox , $ this -> hostname ) ; if ( null !== $ this -> name ) { $ address = \ sprintf ( '"%s" <%s>' , \ addcslashes ( $ this -> name , '"' ) , $ address ) ; } return $ address ; }
Returns address with person name.

@return string
Returns address with person name .