azure-storage-common\src\Common\Models\Range.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

methodpublic__construct(integer $start, integer $end = null) : \MicrosoftAzure\Storage\Common\Models\Range

Constructor

Parameters
NameTypeDescription
$startinteger

the resource start value

$endinteger

the resource end value

Returns
TypeDescription
\MicrosoftAzure\Storage\Common\Models\Range
methodpublicgetEnd() : integer

Gets resource end range

Returns
TypeDescription
integer
methodpublicgetLength() : integer

Gets resource range length

Returns
TypeDescription
integer
methodpublicgetRangeString() : string

Constructs the range string according to the set start and end

Returns
TypeDescription
string
methodpublicgetStart() : integer

Gets resource start range

Returns
TypeDescription
integer
methodpublicsetEnd(integer $end) : void

Sets resource end range

Parameters
NameTypeDescription
$endinteger

the resource range end

methodpublicsetLength(integer $value) : void

Sets resource range length

Parameters
NameTypeDescription
$valueinteger

new resource range

methodpublicsetStart(integer $start) : void

Sets resource start range

Parameters
NameTypeDescription
$startinteger

the resource range start

Documentation was generated by phpDocumentor 2.9.1.