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