@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
at upstream/main 61 lines 1.0 kB view raw
1<?php 2 3final 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}