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

27 lines
593 B
PHP
Raw Normal View History

<?php
final class DiffusionCommitAutocloseHeraldField
extends DiffusionCommitHeraldField {
const FIELDCONST = 'diffusion.commit.autoclose';
public function getHeraldFieldName() {
return pht('Commit is on permanent branch');
}
public function getHeraldFieldValue($object) {
return $object->getRepository()->shouldAutocloseCommit($object);
}
public function getHeraldFieldConditions() {
return array(
HeraldAdapter::CONDITION_UNCONDITIONALLY,
);
}
public function getHeraldFieldValueType($condition) {
return new HeraldEmptyFieldValue();
}
}