lib/mail/EmailAddress.php
public function setSubject($subject)
    {
        if (!is_string($subject)) {
            throw new TypeException('$subject must be of type string.');
        }
        if (!($subject instanceof Subject)) {
            $this->subject = new Subject($subject);
        } else {
            $this->subject = $subject;
        }
    }
public function setSubject($subject)
    {
        if (!is_string($subject)) {
            throw new TypeException('$subject must be of type string.');
        }
        if (!($subject instanceof Subject)) {
            $this->subject = new Subject($subject);
        } else {
            $this->subject = $subject;
        }
    }
public function setSubject ( $ subject ) { if ( ! is_string ( $ subject ) ) { throw new TypeException ( '$subject must be of type string.' ) ; } if ( ! ( $ subject instanceof Subject ) ) { $ this -> subject = new Subject ( $ subject ) ; } else { $ this -> subject = $ subject ; } }
Add a subject to a EmailAddress object

@param string $subject The personalized subject of the email

@throws TypeException
Add a subject to a EmailAddress object