Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/edge/DiffusionCommitHasTaskEdgeType.php
<?php | <?php | ||||
final class DiffusionCommitHasTaskEdgeType extends PhabricatorEdgeType { | final class DiffusionCommitHasTaskEdgeType extends PhabricatorEdgeType { | ||||
const EDGECONST = 2; | const EDGECONST = 2; | ||||
public function shouldWriteInverseTransactions() { | public function shouldWriteInverseTransactions() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getInverseEdgeConstant() { | public function getInverseEdgeConstant() { | ||||
return ManiphestTaskHasCommitEdgeType::EDGECONST; | return ManiphestTaskHasCommitEdgeType::EDGECONST; | ||||
} | } | ||||
public function getConduitKey() { | |||||
return 'commit.task'; | |||||
} | |||||
public function getConduitName() { | |||||
return pht('Commit Has Task'); | |||||
} | |||||
public function getConduitDescription() { | |||||
return pht('The source commit is associated with the destination task.'); | |||||
} | |||||
public function getTransactionAddString( | public function getTransactionAddString( | ||||
$actor, | $actor, | ||||
$add_count, | $add_count, | ||||
$add_edges) { | $add_edges) { | ||||
return pht( | return pht( | ||||
'%s added %s task(s): %s.', | '%s added %s task(s): %s.', | ||||
$actor, | $actor, | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |