1<?php
2
3/**
4 * LICENSE: The MIT License (the "License")
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * https://github.com/azure/azure-storage-php/LICENSE
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category  Microsoft
18 * @package   MicrosoftAzure\Storage\Blob\Models
19 * @author    Azure Storage PHP SDK <dmsh@microsoft.com>
20 * @copyright 2016 Microsoft Corporation
21 * @license   https://github.com/azure/azure-storage-php/LICENSE
22 * @link      https://github.com/azure/azure-storage-php
23 */
24
25namespace MicrosoftAzure\Storage\Blob\Models;
26
27/**
28 * Holds information about blob block.
29 *
30 * @category  Microsoft
31 * @package   MicrosoftAzure\Storage\Blob\Models
32 * @author    Azure Storage PHP SDK <dmsh@microsoft.com>
33 * @copyright 2016 Microsoft Corporation
34 * @license   https://github.com/azure/azure-storage-php/LICENSE
35 * @link      https://github.com/azure/azure-storage-php
36 */
37class Block
38{
39    private $_blockId;
40    private $_type;
41
42    /**
43     * Constructor.
44     *
45     * @param string $blockId The ID of this block.
46     * @param string $type    The type of the block.
47     */
48    public function __construct($blockId = '', $type = '')
49    {
50        $this->_blockId = $blockId;
51        $this->_type = $type;
52    }
53
54    /**
55     * Sets the blockId.
56     *
57     * @param string $blockId The id of the block.
58     *
59     * @return void
60     */
61    public function setBlockId($blockId)
62    {
63        $this->_blockId = $blockId;
64    }
65
66    /**
67     * Gets the blockId.
68     *
69     * @return string
70     */
71    public function getBlockId()
72    {
73        return $this->_blockId;
74    }
75
76    /**
77     * Sets the type.
78     *
79     * @param string $type The type of the block.
80     *
81     * @return void
82     */
83    public function setType($type)
84    {
85        $this->_type = $type;
86    }
87
88    /**
89     * Gets the type.
90     *
91     * @return string
92     */
93    public function getType()
94    {
95        return $this->_type;
96    }
97}
98