@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 PhabricatorAuthChallengeUpdate
4 extends Phobject {
5
6 private $retry = false;
7 private $state;
8 private $markup;
9
10 public function setRetry($retry) {
11 $this->retry = $retry;
12 return $this;
13 }
14
15 public function getRetry() {
16 return $this->retry;
17 }
18
19 public function setState($state) {
20 $this->state = $state;
21 return $this;
22 }
23
24 public function getState() {
25 return $this->state;
26 }
27
28 public function setMarkup($markup) {
29 $this->markup = $markup;
30 return $this;
31 }
32
33 public function getMarkup() {
34 return $this->markup;
35 }
36
37 public function newContent() {
38 return array(
39 'retry' => $this->getRetry(),
40 'state' => $this->getState(),
41 'markup' => $this->getMarkup(),
42 );
43 }
44}