Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / view / fuel / FuelMapItemView.php
blobabf64c1d84fc28d8506e15b46f15ced0991a0bab
1 <?php
3 final class FuelMapItemView
4 extends AphrontView {
6 private $name;
7 private $value;
9 public function setName($name) {
10 $this->name = $name;
11 return $this;
14 public function getName() {
15 return $this->name;
18 public function setValue($value) {
19 $this->value = $value;
20 return $this;
23 public function getValue() {
24 return $this->value;
27 public function render() {
28 $value = $this->getValue();
30 $view = array();
32 $view[] = phutil_tag(
33 'div',
34 array(
35 'class' => 'fuel-map-name',
37 $this->getName());
39 $view[] = phutil_tag(
40 'div',
41 array(
42 'class' => 'fuel-map-value',
44 $value);
46 return phutil_tag(
47 'div',
48 array(
49 'class' => 'fuel-map-pair',
51 $view);