Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitContentPusherIsCommitterHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitContentPusherIsCommitterHeraldField.php
Show All 10 Lines | final class DiffusionPreCommitContentPusherIsCommitterHeraldField | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
$pusher = $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | $pusher = $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | ||||
$committer = $this->getAdapter()->getCommitterPHID(); | $committer = $this->getAdapter()->getCommitterPHID(); | ||||
return ($pusher === $committer); | return ($pusher === $committer); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_BOOL; | return HeraldField::STANDARD_BOOL; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_NONE; | |||||
} | |||||
} | } |