MicrosoftAzureStorageBlobModelsCopyBlobResult
The result of calling copyBlob API.
Defined (1)
The class is defined in the following location(s).
- /lib/Azure/MicrosoftAzureStorage/Blob/Models/CopyBlobResult.php
- class CopyBlobResult
- {
- /**
- * @var string
- */
- private $_etag;
- /**
- * @var \DateTime
- */
- private $_lastModified;
- /**
- * Creates CopyBlobResult object from the response of the copy blob request.
- *
- * @param array $headers The HTTP response headers in array representation.
- *
- * @return CopyBlobResult
- */
- public static function create($headers)
- {
- $result = new CopyBlobResult();
- $result->setETag(
- Utilities::tryGetValueInsensitive(
- Resources::ETAG,
- $headers
- )
- );
- if (Utilities::arrayKeyExistsInsensitive(Resources::LAST_MODIFIED, $headers)) {
- $lastModified = Utilities::tryGetValueInsensitive(
- Resources::LAST_MODIFIED,
- $headers
- );
- $result->setLastModified(Utilities::rfc1123ToDateTime($lastModified));
- }
- return $result;
- }
- /**
- * Gets ETag.
- *
- * @return string
- */
- public function getETag()
- {
- return $this->_etag;
- }
- /**
- * Sets ETag.
- *
- * @param string $etag value.
- *
- * @return none
- */
- public function setETag($etag)
- {
- $this->_etag = $etag;
- }
- /**
- * Gets blob lastModified.
- *
- * @return \DateTime
- */
- public function getLastModified()
- {
- return $this->_lastModified;
- }
- /**
- * Sets blob lastModified.
- *
- * @param \DateTime $lastModified value.
- *
- * @return none
- */
- public function setLastModified($lastModified)
- {
- $this->_lastModified = $lastModified;
- }
- }