for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace diecoding\aws\s3\commands;
use diecoding\aws\s3\base\commands\ExecutableCommand;
use diecoding\aws\s3\interfaces\commands\HasBucket;
/**
* Class GetPresignedUrlCommand
*
* @method string execute()
* @package diecoding\aws\s3\commands
*/
class GetPresignedUrlCommand extends ExecutableCommand implements HasBucket
{
/** @var array */
protected $args = [];
/** @var mixed */
protected $expiration;
* @return string
public function getBucket(): string
return $this->args['Bucket'] ?? '';
}
* @param string $name
* @return $this
public function inBucket(string $name)
$this->args['Bucket'] = $name;
return $this;
public function getFilename(): string
return $this->args['Key'] ?? '';
* @param string $filename
public function byFilename(string $filename)
$this->args['Key'] = $filename;
* @return mixed
public function getExpiration()
return $this->expiration;
* @param int|string|\DateTime $expiration
public function withExpiration($expiration)
$this->expiration = $expiration;
* @internal used by the handlers
* @return array
public function getArgs(): array
return $this->args;