/** * @param \Aws\S3\S3Client * @return bool * @throws \InvalidArgumentException */ public function setConnection($connection) { if (!$connection instanceof S3Client) { throw new \InvalidArgumentException('Connection must be an instance of S3Client.'); } return parent::setConnection($connection); }
public function __construct($options = array()) { parent::__construct(); if (!empty($options['doc_root'])) { $this->doc_root = $options['doc_root']; } if (!empty($options['container'])) { $this->container = $options['container']; } }
/** * @return \AmazonS3 */ public function getConnection() { return parent::getConnection(); }