Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/metamta/future/PhabricatorAmazonSNSFuture.php
12256 views
1
<?php
2
3
final class PhabricatorAmazonSNSFuture extends PhutilAWSFuture {
4
private $parameters = array();
5
private $timeout;
6
7
public function setParameters($parameters) {
8
$this->parameters = $parameters;
9
return $this;
10
}
11
12
protected function getParameters() {
13
return $this->parameters;
14
}
15
16
public function getServiceName() {
17
return 'sns';
18
}
19
20
public function setTimeout($timeout) {
21
$this->timeout = $timeout;
22
return $this;
23
}
24
25
public function getTimeout() {
26
return $this->timeout;
27
}
28
29
protected function getProxiedFuture() {
30
$future = parent::getProxiedFuture();
31
32
$timeout = $this->getTimeout();
33
if ($timeout) {
34
$future->setTimeout($timeout);
35
}
36
37
return $future;
38
39
}
40
41
}
42
43