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