Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitRefNameHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitRefNameHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitRefNameHeraldField | final class DiffusionPreCommitRefNameHeraldField | ||||
extends DiffusionPreCommitRefHeraldField { | extends DiffusionPreCommitRefHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.ref.name'; | const FIELDCONST = 'diffusion.pre.ref.name'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Ref name'); | return pht('Ref name'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $object->getRefName(); | return $object->getRefName(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_TEXT; | return HeraldField::STANDARD_TEXT; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | |||||
return HeraldAdapter::VALUE_TEXT; | |||||
} | |||||
} | } |