type = $type; $this->data = $data; } public function setUser(PhabricatorUser $user) { $this->user = $user; return $this; } public function getUser() { return $this->user; } public function setAphrontRequest(AphrontRequest $aphront_request) { $this->aphrontRequest = $aphront_request; return $this; } public function getAphrontRequest() { return $this->aphrontRequest; } public function setConduitRequest(ConduitRequest $conduit_request) { $this->conduitRequest = $conduit_request; return $this; } public function getConduitRequest() { return $this->conduitRequest; } public function getType() { return $this->type; } public function getValue($key, $default = null) { return idx($this->data, $key, $default); } public function setValue($key, $value) { $this->data[$key] = $value; return $this; } public function stop() { $this->stop = true; return $this; } public function isStopped() { return $this->stop; } }