Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitContentPusherIsCommitterHeraldField.php
blob4c88955da53a34c0290f044dde59fc83e42739f0
1 <?php
3 final class DiffusionPreCommitContentPusherIsCommitterHeraldField
4 extends DiffusionPreCommitContentHeraldField {
6 const FIELDCONST = 'diffusion.pre.content.pusher.is-committer';
8 public function getHeraldFieldName() {
9 return pht('Pusher is committer');
12 public function getHeraldFieldValue($object) {
13 $pusher = $this->getAdapter()->getHookEngine()->getViewer()->getPHID();
14 $committer = $this->getAdapter()->getCommitterPHID();
16 return ($pusher === $committer);
19 protected function getHeraldFieldStandardType() {
20 return HeraldField::STANDARD_BOOL;