protected function getFromEmail()
    {
        if (!$this->fromAddress) {
            return null;
        }

        if ($this->fromName) {
            return array($this->fromAddress => $this->fromName);
        }

        return $this->fromAddress;
    }
protected function getFromEmail()
    {
        if (!$this->fromAddress) {
            return null;
        }

        if ($this->fromName) {
            return array($this->fromAddress => $this->fromName);
        }

        return $this->fromAddress;
    }
protected function getFromEmail ( ) { if ( ! $ this -> fromAddress ) { return null ; } if ( $ this -> fromName ) { return array ( $ this -> fromAddress => $ this -> fromName ) ; } return $ this -> fromAddress ; }
Format the fromEmail parameter for the Swift_Mailer.

@return array|string|null
Format the fromEmail parameter for the Swift_Mailer .