Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->hash = $response->getHeaderLine('ETag');
     $this->contentLength = $response->getHeaderLine('Content-Length');
     $this->lastModified = $response->getHeaderLine('Last-Modified');
     $this->contentType = $response->getHeaderLine('Content-Type');
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->containerCount = $response->getHeaderLine('X-Account-Container-Count');
     $this->objectCount = $response->getHeaderLine('X-Account-Object-Count');
     $this->bytesUsed = $response->getHeaderLine('X-Account-Bytes-Used');
     $this->tempUrl = $response->getHeaderLine('X-Account-Meta-Temp-URL-Key');
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Exemplo n.º 3
0
 public function populateFromArray(array $data) : self
 {
     parent::populateFromArray($data);
     $baseUri = $this->getHttpBaseUrl();
     if (isset($data['file'])) {
         $this->fileUri = Utils::appendPath($baseUri, $data['file']);
     }
     if (isset($data['schema'])) {
         $this->schemaUri = Utils::appendPath($baseUri, $data['schema']);
     }
     return $this;
 }
Exemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 public function populateFromResponse(ResponseInterface $response)
 {
     parent::populateFromResponse($response);
     $this->id = $response->getHeaderLine('X-Subject-Token');
     return $this;
 }
Exemplo n.º 5
0
 public function populateFromResponse(ResponseInterface $response) : self
 {
     parent::populateFromResponse($response);
     $this->metadata = $this->parseMetadata($response);
     return $this;
 }
Exemplo n.º 6
0
 public function getAttrs(array $keys)
 {
     return parent::getAttrs($keys);
 }