Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitContentMergeHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitContentMergeHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitContentMergeHeraldField | final class DiffusionPreCommitContentMergeHeraldField | ||||
extends DiffusionPreCommitContentHeraldField { | extends DiffusionPreCommitContentHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.content.merge'; | const FIELDCONST = 'diffusion.pre.content.merge'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Is merge commit'); | return pht('Is merge commit'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->getIsMergeCommit(); | return $this->getAdapter()->getIsMergeCommit(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_BOOL; | return HeraldField::STANDARD_BOOL; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_NONE; | |||||
} | |||||
} | } |