Changeset View
Changeset View
Standalone View
Standalone View
src/future/aws/PhutilAWSS3Future.php
<?php | <?php | ||||
final class PhutilAWSS3Future extends PhutilAWSFuture { | final class PhutilAWSS3Future extends PhutilAWSFuture { | ||||
private $bucket; | |||||
private $key; | |||||
public function getServiceName() { | public function getServiceName() { | ||||
return 's3'; | return 's3'; | ||||
} | } | ||||
public function setBucket($bucket) { | |||||
$this->bucket = $bucket; | |||||
return $this; | |||||
} | |||||
public function getBucket() { | |||||
return $this->bucket; | |||||
} | |||||
public function setKey($key) { | |||||
$this->key = $key; | |||||
return $this; | |||||
} | |||||
public function getKey() { | |||||
return $this->key; | |||||
} | |||||
public final function getHost() { | |||||
return $this->getBucket().'.'.parent::getHost(); | |||||
} | |||||
public function getPath() { | |||||
return $this->key; | |||||
} | |||||
} | } |