@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhutilRemarkupHyperlinkRef
4 extends Phobject {
5
6 private $token;
7 private $uri;
8 private $embed;
9 private $result;
10
11 public function __construct(array $map) {
12 $this->token = $map['token'];
13 $this->uri = $map['uri'];
14 $this->embed = ($map['mode'] === '{');
15 }
16
17 public function getToken() {
18 return $this->token;
19 }
20
21 public function getURI() {
22 return $this->uri;
23 }
24
25 public function isEmbed() {
26 return $this->embed;
27 }
28
29 public function setResult($result) {
30 $this->result = $result;
31 return $this;
32 }
33
34 public function getResult() {
35 return $this->result;
36 }
37
38}