Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conduit/data/ConduitAPIDocumentationPage.php
12256 views
1
<?php
2
3
final class ConduitAPIDocumentationPage
4
extends Phobject {
5
6
private $name;
7
private $anchor;
8
private $iconIcon;
9
private $content = array();
10
11
public function setName($name) {
12
$this->name = $name;
13
return $this;
14
}
15
16
public function getName() {
17
return $this->name;
18
}
19
20
public function setAnchor($anchor) {
21
$this->anchor = $anchor;
22
return $this;
23
}
24
25
public function getAnchor() {
26
return $this->anchor;
27
}
28
29
public function setContent($content) {
30
$this->content = $content;
31
return $this;
32
}
33
34
public function getContent() {
35
return $this->content;
36
}
37
38
public function setIconIcon($icon_icon) {
39
$this->iconIcon = $icon_icon;
40
return $this;
41
}
42
43
public function getIconIcon() {
44
return $this->iconIcon;
45
}
46
47
public function newView() {
48
$anchor_name = $this->getAnchor();
49
$anchor_view = id(new PhabricatorAnchorView())
50
->setAnchorName($anchor_name);
51
52
$content = $this->content;
53
54
return array(
55
$anchor_view,
56
$content,
57
);
58
}
59
60
61
}
62
63