mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
27 lines
591 B
PHP
27 lines
591 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionCommitAutocloseHeraldField
|
||
|
extends DiffusionCommitHeraldField {
|
||
|
|
||
|
const FIELDCONST = 'diffusion.commit.autoclose';
|
||
|
|
||
|
public function getHeraldFieldName() {
|
||
|
return pht('Commit is on autoclose branch');
|
||
|
}
|
||
|
|
||
|
public function getHeraldFieldValue($object) {
|
||
|
return $object->getRepository()->shouldAutocloseCommit($object);
|
||
|
}
|
||
|
|
||
|
public function getHeraldFieldConditions() {
|
||
|
return array(
|
||
|
HeraldAdapter::CONDITION_UNCONDITIONALLY,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
public function getHeraldFieldValueType($condition) {
|
||
|
return HeraldAdapter::VALUE_NONE;
|
||
|
}
|
||
|
|
||
|
}
|