azure-storage-common\src\Common\Models\Range.php
LICENSE: The MIT License (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PHP version 5
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
- Package
- MicrosoftAzure\Storage\Common\Models
\MicrosoftAzure\Storage\Common\Models\Range
Package: MicrosoftAzure\Storage\Common\Models
Holds info about resource+ range used in HTTP requests
- Children
- \MicrosoftAzure\Storage\Common\Models\RangeDiff
- Author
- Azure Storage PHP SDK
- Category
- Microsoft
- Copyright
- 2016 Microsoft Corporation
- License
- https://github.com/azure/azure-storage-php/LICENSE
- Link
- https://github.com/azure/azure-storage-php
Methods
__construct(integer $start, integer $end = null) : \MicrosoftAzure\Storage\Common\Models\Range
Constructor
Parameters
Returns
Name | Type | Description |
---|---|---|
$start | integer | the resource start value |
$end | integer | the resource end value |
Type | Description |
---|---|
\MicrosoftAzure\Storage\Common\Models\Range |
getRangeString() : string
Constructs the range string according to the set start and end
Returns
Type | Description |
---|---|
string |
setEnd(integer $end) : void
Sets resource end range
Parameters
Name | Type | Description |
---|---|---|
$end | integer | the resource range end |
setLength(integer $value) : void
Sets resource range length
Parameters
Name | Type | Description |
---|---|---|
$value | integer | new resource range |