Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/markup/markuprule/PhutilRemarkupHyperlinkRef.php
12241 views
1
<?php
2
3
final 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
}
39
40