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
;