* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace WindowsAzure\Blob\Models; use WindowsAzure\Common\Internal\Resources; use WindowsAzure\Common\Internal\Utilities; /** * The result of calling acquireLease API. * * @category Microsoft * @package WindowsAzure\Blob\Models * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @version Release: 0.4.1_2015-03 * @link https://github.com/windowsazure/azure-sdk-for-php */ class AcquireLeaseResult { /** * @var string */ private $_leaseId; /** * Creates AcquireLeaseResult from response headers * * @param array $headers response headers * * @return AcquireLeaseResult */ public static function create($headers) { $result = new AcquireLeaseResult(); $result->setLeaseId( Utilities::tryGetValue($headers, Resources::X_MS_LEASE_ID) ); return $result; } /** * Gets lease Id for the blob * * @return string */ public function getLeaseId() { return $this->_leaseId; } /** * Sets lease Id for the blob * * @param string $leaseId the blob lease id. * * @return none */ public function setLeaseId($leaseId) { $this->_leaseId = $leaseId; } }