Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/herald/mail/HeraldRuleReplyHandler.php
12256 views
1
<?php
2
3
final class HeraldRuleReplyHandler
4
extends PhabricatorApplicationTransactionReplyHandler {
5
6
public function validateMailReceiver($mail_receiver) {
7
if (!($mail_receiver instanceof HeraldRule)) {
8
throw new Exception(pht('Mail receiver is not a %s!', 'HeraldRule'));
9
}
10
}
11
12
public function getObjectPrefix() {
13
return 'H';
14
}
15
16
}
17
18