Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/HeraldWebhookRequest.php
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | final class HeraldWebhookRequest | ||||
public function setTransactionPHIDs(array $phids) { | public function setTransactionPHIDs(array $phids) { | ||||
return $this->setProperty('transactionPHIDs', $phids); | return $this->setProperty('transactionPHIDs', $phids); | ||||
} | } | ||||
public function getTransactionPHIDs() { | public function getTransactionPHIDs() { | ||||
return $this->getProperty('transactionPHIDs', array()); | return $this->getProperty('transactionPHIDs', array()); | ||||
} | } | ||||
public function setIsSilentAction($bool) { | |||||
return $this->setProperty('silent', $bool); | |||||
} | |||||
public function getIsSilentAction() { | |||||
return $this->getProperty('silent', false); | |||||
} | |||||
public function setIsTestAction($bool) { | |||||
return $this->setProperty('test', $bool); | |||||
} | |||||
public function getIsTestAction() { | |||||
return $this->getProperty('test', false); | |||||
} | |||||
public function setIsSecureAction($bool) { | |||||
return $this->setProperty('secure', $bool); | |||||
} | |||||
public function getIsSecureAction() { | |||||
return $this->getProperty('secure', false); | |||||
} | |||||
public function queueCall() { | public function queueCall() { | ||||
PhabricatorWorker::scheduleTask( | PhabricatorWorker::scheduleTask( | ||||
'HeraldWebhookWorker', | 'HeraldWebhookWorker', | ||||
array( | array( | ||||
'webhookRequestPHID' => $this->getPHID(), | 'webhookRequestPHID' => $this->getPHID(), | ||||
), | ), | ||||
array( | array( | ||||
'objectPHID' => $this->getPHID(), | 'objectPHID' => $this->getPHID(), | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |