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/DiffusionPreCommitRefHeraldField.php

22 lines
428 B
PHP
Raw Normal View History

<?php
abstract class DiffusionPreCommitRefHeraldField extends HeraldField {
public function supportsObject($object) {
if (!($object instanceof PhabricatorRepositoryPushLog)) {
return false;
}
if (!$this->getAdapter()->isPreCommitRefAdapter()) {
return false;
}
return true;
}
public function getFieldGroupKey() {
return DiffusionPreCommitRefHeraldFieldGroup::FIELDGROUPKEY;
}
}