Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/mail/PhamePostReplyHandler.php
- This file was added.
<?php | |||||
final class PhamePostReplyHandler | |||||
extends PhabricatorApplicationTransactionReplyHandler { | |||||
public function validateMailReceiver($mail_receiver) { | |||||
if (!($mail_receiver instanceof PhamePost)) { | |||||
throw new Exception( | |||||
pht('Mail receiver is not a %s.', 'PhamePost')); | |||||
} | |||||
} | |||||
public function getObjectPrefix() { | |||||
return PhabricatorPhamePostPHIDType::TYPECONST; | |||||
} | |||||
protected function shouldCreateCommentFromMailBody() { | |||||
return false; | |||||
} | |||||
} |