Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerRule.php
| Show All 34 Lines | abstract class PhabricatorProjectTriggerRule | ||||
| final protected function getValue() { | final protected function getValue() { | ||||
| return $this->getRecord()->getValue(); | return $this->getRecord()->getValue(); | ||||
| } | } | ||||
| abstract public function getDescription(); | abstract public function getDescription(); | ||||
| abstract protected function assertValidRuleValue($value); | abstract protected function assertValidRuleValue($value); | ||||
| abstract protected function newDropTransactions($object, $value); | abstract protected function newDropTransactions($object, $value); | ||||
| abstract protected function newDropEffects($value); | |||||
| final public function getDropTransactions($object, $value) { | final public function getDropTransactions($object, $value) { | ||||
| return $this->newDropTransactions($object, $value); | return $this->newDropTransactions($object, $value); | ||||
| } | } | ||||
| final public function setViewer(PhabricatorUser $viewer) { | final public function setViewer(PhabricatorUser $viewer) { | ||||
| $this->viewer = $viewer; | $this->viewer = $viewer; | ||||
| return $this; | return $this; | ||||
| Show All 30 Lines | abstract class PhabricatorProjectTriggerRule | ||||
| final public function getObject() { | final public function getObject() { | ||||
| return $this->object; | return $this->object; | ||||
| } | } | ||||
| final protected function newTransaction() { | final protected function newTransaction() { | ||||
| return $this->getObject()->getApplicationTransactionTemplate(); | return $this->getObject()->getApplicationTransactionTemplate(); | ||||
| } | } | ||||
| final public function getDropEffects() { | |||||
| return $this->newDropEffects($this->getValue()); | |||||
| } | |||||
| final protected function newEffect() { | |||||
| return new PhabricatorProjectDropEffect(); | |||||
| } | |||||
| } | } | ||||