Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / metamta / future / PhabricatorAmazonSNSFuture.php
blob3be236eee2b43fc2ac1784f279683a1c5ab68af6
1 <?php
3 final class PhabricatorAmazonSNSFuture extends PhutilAWSFuture {
4 private $parameters = array();
5 private $timeout;
7 public function setParameters($parameters) {
8 $this->parameters = $parameters;
9 return $this;
12 protected function getParameters() {
13 return $this->parameters;
16 public function getServiceName() {
17 return 'sns';
20 public function setTimeout($timeout) {
21 $this->timeout = $timeout;
22 return $this;
25 public function getTimeout() {
26 return $this->timeout;
29 protected function getProxiedFuture() {
30 $future = parent::getProxiedFuture();
32 $timeout = $this->getTimeout();
33 if ($timeout) {
34 $future->setTimeout($timeout);
37 return $future;