Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / diffusion / relationships / DiffusionCommitHasRevisionRelationship.php
blob226684c8f2a55b9e961d22015331e9cd9bf1ee7e
1 <?php
3 final class DiffusionCommitHasRevisionRelationship
4 extends DiffusionCommitRelationship {
6 const RELATIONSHIPKEY = 'commit.has-revision';
8 public function getEdgeConstant() {
9 return DiffusionCommitHasRevisionEdgeType::EDGECONST;
12 protected function getActionName() {
13 return pht('Edit Revisions');
16 protected function getActionIcon() {
17 return 'fa-cog';
20 public function canRelateObjects($src, $dst) {
21 return ($dst instanceof DifferentialRevision);
24 public function getDialogTitleText() {
25 return pht('Edit Related Revisions');
28 public function getDialogHeaderText() {
29 return pht('Current Revisions');
32 public function getDialogButtonText() {
33 return pht('Save Related Revisions');
36 protected function newRelationshipSource() {
37 return new DifferentialRevisionRelationshipSource();