ContentRange
- Full name:
\Qubus\Http\Emitter\ContentRange
Properties
start
end
size
unit
Methods
__construct
public __construct(int $start, int $end, null|int $size = null, string $unit = 'bytes'): void
Parameters:
Parameter | Type | Description |
---|---|---|
$start | int | An integer in the given unit indicating the beginning of the request range. |
$end | int | An integer in the given unit indicating the end of the requested range. |
$size | null|int | The total size of the document. |
$unit | string | The unit in which ranges are specified. This is usually bytes . |
Throws:
getUnit
Get the unit in which ranges are specified. This is usually bytes.
setUnit
Set the unit in which ranges are specified. This is usually bytes.
Parameters:
Parameter | Type | Description |
---|---|---|
$unit | string | The unit in which ranges are specified. This is usually bytes. |
getStart
Get the beginning of the request range.
setStart
Set the beginning of the request range.
Parameters:
Parameter | Type | Description |
---|---|---|
$start | int | the beginning of the request range. |
Throws:
getEnd
Get an integer in the given unit indicating the end of the requested range.
setEnd
Set an integer in the given unit indicating the end of the requested range.
Parameters:
Parameter | Type | Description |
---|---|---|
$end | int | An integer in the given unit indicating the end of the requested range. |
getSize
Get the total size of the document.
setSize
Set the total size of the document.
Parameters:
Parameter | Type | Description |
---|---|---|
$size | int|null | The total size of the document. |
Automatically generated on 2025-10-13