Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitRefRepositoryHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitRefRepositoryHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitRefRepositoryHeraldField | final class DiffusionPreCommitRefRepositoryHeraldField | ||||
extends DiffusionPreCommitRefHeraldField { | extends DiffusionPreCommitRefHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.ref.repository'; | const FIELDCONST = 'diffusion.pre.ref.repository'; | ||||
public function getHeraldFieldName() { | public function getHeraldFieldName() { | ||||
return pht('Repository'); | return pht('Repository'); | ||||
} | } | ||||
public function getHeraldFieldValue($object) { | public function getHeraldFieldValue($object) { | ||||
return $this->getAdapter()->getHookEngine()->getRepository()->getPHID(); | return $this->getAdapter()->getHookEngine()->getRepository()->getPHID(); | ||||
} | } | ||||
protected function getHeraldFieldStandardConditions() { | protected function getHeraldFieldStandardType() { | ||||
return HeraldField::STANDARD_PHID; | return HeraldField::STANDARD_PHID; | ||||
} | } | ||||
public function getHeraldFieldValueType($condition) { | public function getHeraldFieldValueType($condition) { | ||||
return HeraldAdapter::VALUE_REPOSITORY; | return HeraldAdapter::VALUE_REPOSITORY; | ||||
} | } | ||||
} | } |