Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitRefPusherHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitRefPusherHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitRefPusherHeraldField | final class DiffusionPreCommitRefPusherHeraldField | ||||
extends DiffusionPreCommitRefHeraldField { | extends DiffusionPreCommitRefHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.ref.pusher'; | const FIELDCONST = 'diffusion.pre.ref.pusher'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Pusher'); | return pht('Pusher'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | return $this->getAdapter()->getHookEngine()->getViewer()->getPHID(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_PHID; | return HeraldField::STANDARD_PHID; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | public function getHeraldFieldValueType($condition) { | ||||
return HeraldAdapter::VALUE_USER; | return HeraldAdapter::VALUE_USER; | ||||
} | } | ||||
} | } |