1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-11 08:06:13 +01:00
phorge-phorge/src/applications/diffusion/herald/DiffusionPreCommitContentRevisionHeraldField.php

31 lines
636 B
PHP
Raw Normal View History

<?php
final class DiffusionPreCommitContentRevisionHeraldField
extends DiffusionPreCommitContentHeraldField {
const FIELDCONST = 'diffusion.pre.content.revision';
public function getHeraldFieldName() {
return pht('Differential revision');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->getRevision();
if (!$revision) {
return null;
}
return $revision->getPHID();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_BOOL;
}
}