public function __construct(Command\Builder\FetchObject $builder) { parent::__construct($builder); $this->bucket = $builder->getBucket(); $this->location = $builder->getLocation(); $this->decodeAsAssociative = $builder->getDecodeAsAssociative(); }
public function __construct(Command\Builder\StoreObject $builder) { parent::__construct($builder); $this->object = $builder->getObject(); $this->bucket = $builder->getBucket(); $this->location = $builder->getLocation(); $this->decodeAsAssociative = $builder->getDecodeAsAssociative(); if ($this->location) { $this->method = 'PUT'; } }
public function __construct(Command\Builder\FetchPreflist $builder) { parent::__construct($builder); $this->bucket = $builder->getBucket(); $this->location = $builder->getLocation(); }
public function __construct(Command\Builder\DeleteObject $builder) { parent::__construct($builder); $this->bucket = $builder->getBucket(); $this->location = $builder->getLocation(); }
public function parseObject($response, $headers = []) { $contentType = !empty($headers[Http::CONTENT_TYPE_KEY]) ? $headers[Http::CONTENT_TYPE_KEY] : ''; $data = $this->command->getDecodedData($response, $contentType); return (new RObject($data, $headers))->setRawData($response); }