Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/future/PhabricatorAmazonSNSFuture.php
- This file was added.
<?php | |||||
final class PhabricatorAmazonSNSFuture extends PhutilAWSFuture { | |||||
private $parameters = array(); | |||||
private $timeout; | |||||
epriestley: Is this actually used? | |||||
Done Inline ActionsIf I implemented getProxiedFuture correctly, I think so? amckinley: If I implemented `getProxiedFuture` correctly, I think so? | |||||
Not Done Inline ActionsDoesn't necessarily need to be in this diff, but can we put this in PhutilAWSFuture? epriestley: Doesn't necessarily need to be in this diff, but can we put this in `PhutilAWSFuture`? | |||||
Done Inline ActionsYeah, good idea. amckinley: Yeah, good idea. | |||||
public function setParameters($parameters) { | |||||
$this->parameters = $parameters; | |||||
return $this; | |||||
} | |||||
protected function getParameters() { | |||||
return $this->parameters; | |||||
} | |||||
public function getServiceName() { | |||||
return 'sns'; | |||||
} | |||||
public function setTimeout($timeout) { | |||||
$this->timeout = $timeout; | |||||
return $this; | |||||
} | |||||
public function getTimeout() { | |||||
return $this->timeout; | |||||
} | |||||
protected function getProxiedFuture() { | |||||
$future = parent::getProxiedFuture(); | |||||
$timeout = $this->getTimeout(); | |||||
if ($timeout) { | |||||
$future->setTimeout($timeout); | |||||
} | |||||
return $future; | |||||
} | |||||
} |
Is this actually used?