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