* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Blob\Models; /** * Holds available blob block types * * @category Microsoft * @package MicrosoftAzure\Storage\Blob\Models * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class BlobBlockType { const COMMITTED_TYPE = 'Committed'; const UNCOMMITTED_TYPE = 'Uncommitted'; const LATEST_TYPE = 'Latest'; /** * Validates the provided type. * * @param string $type The entry type. * * @internal * * @return boolean */ public static function isValid($type) { switch ($type) { case self::COMMITTED_TYPE: case self::LATEST_TYPE: case self::UNCOMMITTED_TYPE: return true; default: return false; } } }