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