/** * @param string|null $pathPrefix * @param int|null $mode */ public function __construct($pathPrefix = null, $mode = null) { parent::__construct($pathPrefix); if (null === $mode) { $mode = 0777; } $this->_mode = (int) $mode; }
/** * @param Aws\S3\S3Client $client * @param string $bucket * @param string|null $acl * @param string|null $pathPrefix * @throws CM_Exception */ public function __construct(Aws\S3\S3Client $client, $bucket, $acl = null, $pathPrefix = null) { parent::__construct($pathPrefix); if (null === $acl) { $acl = 'private'; } $this->_client = $client; $this->_bucket = (string) $bucket; $this->_acl = $acl; }