Inheritance: extends Basho\Riak\Command
Example #1
0
 public function __construct(Command\Builder\FetchObject $builder)
 {
     parent::__construct($builder);
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
     $this->decodeAsAssociative = $builder->getDecodeAsAssociative();
 }
Example #2
0
 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();
 }
Example #4
0
 public function __construct(Command\Builder\DeleteObject $builder)
 {
     parent::__construct($builder);
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
 }
Example #5
0
 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);
 }