Differential D13612 Diff 32970 src/applications/diffusion/herald/DiffusionPreCommitContentRepositoryHeraldField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/DiffusionPreCommitContentRepositoryHeraldField.php
<?php | <?php | ||||
final class DiffusionPreCommitContentRepositoryHeraldField | final class DiffusionPreCommitContentRepositoryHeraldField | ||||
extends DiffusionPreCommitContentHeraldField { | extends DiffusionPreCommitContentHeraldField { | ||||
const FIELDCONST = 'diffusion.pre.content.repository'; | const FIELDCONST = 'diffusion.pre.content.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; | ||||
} | } | ||||
} | } |