public function getTitleForMail() { switch ($this->getTransactionType()) { case self::TYPE_INVOICED: return pht('You have a new invoice due.'); } return parent::getTitleForMail(); }