mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
25 lines
554 B
PHP
25 lines
554 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionPreCommitContentMergeHeraldField
|
||
|
extends DiffusionPreCommitContentHeraldField {
|
||
|
|
||
|
const FIELDCONST = 'diffusion.pre.content.merge';
|
||
|
|
||
|
public function getHeraldFieldName() {
|
||
|
return pht('Is merge commit');
|
||
|
}
|
||
|
|
||
|
public function getHeraldFieldValue($object) {
|
||
|
return $this->getAdapter()->getIsMergeCommit();
|
||
|
}
|
||
|
|
||
|
protected function getHeraldFieldStandardConditions() {
|
||
|
return HeraldField::STANDARD_BOOL;
|
||
|
}
|
||
|
|
||
|
public function getHeraldFieldValueType($condition) {
|
||
|
return HeraldAdapter::VALUE_NONE;
|
||
|
}
|
||
|
|
||
|
}
|