3 final class LegalpadMailReceiver
extends PhabricatorObjectMailReceiver
{
5 public function isEnabled() {
6 return PhabricatorApplication
::isClassInstalled(
7 'PhabricatorLegalpadApplication');
10 protected function getObjectPattern() {
14 protected function loadObject($pattern, PhabricatorUser
$viewer) {
15 $id = (int)substr($pattern, 1);
17 return id(new LegalpadDocumentQuery())
20 ->needDocumentBodies(true)
24 protected function getTransactionReplyHandler() {
25 return new LegalpadReplyHandler();