Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.0 kB · 48 lines
PHP
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<?php
final class PhabricatorChangesetResponse extends AphrontProxyResponse {
private $renderedChangeset; private $coverage; private $changesetState;
public function setRenderedChangeset($rendered_changeset) { $this->renderedChangeset = $rendered_changeset; return $this; }
public function getRenderedChangeset() { return $this->renderedChangeset; }
public function setCoverage($coverage) { $this->coverage = $coverage; return $this; }
protected function buildProxy() { return new AphrontAjaxResponse(); }
public function reduceProxyResponse() { $content = array( 'changeset' => $this->getRenderedChangeset(), ) + $this->getChangesetState();
if ($this->coverage) { $content['coverage'] = $this->coverage; }
return $this->getProxy()->setContent($content); }
public function setChangesetState(array $state) { $this->changesetState = $state; return $this; }
public function getChangesetState() { return $this->changesetState; }
}