/** * Allows caller to have the mail subject dynamically set to contain the * entry counts per-priority level. * * Sets the text for use in the subject, with entry counts per-priority * level appended to the end. Since a IfwPsn_Vendor_Zend_Mail subject can only be set * once, this method cannot be used if the IfwPsn_Vendor_Zend_Mail object already has a * subject set. * * @param string $subject Subject prepend text. * @return IfwPsn_Vendor_Zend_Log_Writer_Mail * @throws IfwPsn_Vendor_Zend_Log_Exception */ public function setSubjectPrependText($subject) { if ($this->_mail->getSubject()) { throw new IfwPsn_Vendor_Zend_Log_Exception('subject already set on mail; ' . 'cannot set subject prepend text'); } $this->_subjectPrependText = (string) $subject; return $this; }